// { dg-do assemble } template struct S { typedef T X; class C { typedef T X; }; }; template struct S2 { enum { A = I }; void f() { int A; } };