1 // PR c++/35097 2 // { dg-do compile { target c++11 } } 3 4 template<int> struct A; 5 6 template<> struct A<0> 7 { 8 typedef int X [[gnu::aligned(4)]]; 9 }; 10 11 template<typename T> void foo(const A<0>::X&, T); 12 13 void bar() 14 { 15 foo(A<0>::X(), 0); 16 } 17