Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/typename9.C

raw
1 // { dg-do run }
2 // { dg-options "-w" }
3 // Test to make sure that implicit typename doesn't break name binding rules.
4
5 typedef double A;
6 template<class T> class B {
7 typedef char A;
8 };
9 template<class T> struct X : B<T> {
10 A a;
11 };
12
13 int main()
14 {
15 X<char*> x;
16 return sizeof (x.a) != sizeof (double);
17 }