1 // { dg-do assemble } 2 3 // Copyright (C) 1999 Free Software Foundation 4 5 // by Alexandre Oliva <oliva@dcc.unicamp.br> 6 // based on bug report by Andreas Stolcke <stolcke@speech.sri.com> 7 8 // Fails with dwarf debugging. 9 10 template <class T = void> struct foo { 11 int data[1]; 12 }; 13 14 template <class T = void> struct bar { 15 bar(foo<> *); 16 }; 17 bar(foo<> * x)18template <class T> bar<T>::bar(foo<> *x) { 19 *x; 20 } 21 baz()22void baz() { 23 foo<> *baz; 24 bar<> baar(baz); 25 } 26