Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / template3.C
blobe5f6f18edc7d3885bb20a5ac1a6b23f68d531839
1 // Origin PR c++/47957
2 // { dg-do compile }
4 struct S
6   int m;
8   S()
9     : m(0)
10   {
11   }
14 struct Base
16   typedef S T;
19 template<class T>
20 struct Derived : public Base
22   int
23   foo()
24   {
25     T a; // This is Base::T, not the template parameter.
26     return a.m;
27   }
30 int
31 main()
33   Derived<char> d;
34   return d.foo();