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