Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / hidden-class17.C
blob3d5ccec39ccd1a1b98af5f1d780c08d3860c1349
1 // Origin PR c++/51641
2 // { dg-do compile }
4 struct A {
5     struct B { typedef int X; };
6 };
8 template<class B> struct C : A {
9     B::X q; // Ok: A::B.
10     struct U { typedef int X; };
11     template<class U>
12         struct D;
15 template<class B>
16 template<class U>
17 struct C<B>::D {
18     typename U::X r; // { dg-error "" }
21 C<int>::D<double> y;