]> git.ipfire.org Git - people/ms/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/nsdmi-template25.C
c++: DMI in template with virtual base [PR106890]
[people/ms/gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-template25.C
CommitLineData
041a164e
JM
1// PR c++/106890
2// { dg-do compile { target c++11 } }
3
4struct A
5{
6 int p;
7};
8
9template<typename T>
10struct B : virtual public A
11{
12 B() { }
13 B(int) { }
14
15 int k = this->p;
16};
17
18template struct B<int>;