Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.dg / cpp0x / nsdmi5.C
blobbade28f3dcc5b8a16dc6420c08564f3c083c9541
1 // { dg-do compile { target c++11 } }
3 struct X
5   int x = 5;
6   int f() { return x; }
7 };
8 struct Y : X
10   int y = this->x;
12 template <class T> struct Z : T
14   int y = this->f();
16 int main()
18   Y foo;
19   Z<X> bar;