1 // { dg-do compile } 2 3 template<int size> 4 struct Foobar { 5 // Contents irrelevant 6 }; 7 8 template <typename A> 9 struct Wrapper { 10 // Contents irrelevant 11 }; 12 13 template <typename A> 14 Foobar<sizeof(Wrapper<A>)> * compiler_bug(A)15compiler_bug (A) 16 { 17 return 0; 18 } 19 main()20int main() 21 { 22 compiler_bug(1); 23 } 24