Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/nsdmi-template25.C

raw
1 // PR c++/106890
2 // { dg-do compile { target c++11 } }
3
4 struct A
5 {
6 int p;
7 };
8
9 template<typename T>
10 struct B : virtual public A
11 {
12 B() { }
13 B(int) { }
14
15 int k = this->p;
16 };
17
18 template struct B<int>;