1 /* PR c++/40557 */ 2 /* { dg-do compile } */ 3 4 struct A 5 { 6 typedef int X; 7 }; 8 9 template<int> union B 10 { 11 A::X x; 12 }; 13