1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// { dg-do assemble } // Bug: the SAVE_EXPR in the new expression remembers that it's in g(), // causing the compiler to crash in h(). struct A { A (); }; void f (A* = new A); void g () { f (); } void h () { f (); }