summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/nsdmi-template25.C
blob: 368e745540ef03b861322f557483ddffbb448a63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/106890
// { dg-do compile { target c++11 } }

struct A
{
  int p;
};

template<typename T>
struct B : virtual public A
{
  B() { }
  B(int) { }

  int k = this->p;
};

template struct B<int>;