// PR c++/34336 // { dg-do compile } struct A; template struct S { T *m; T &operator* () { return *m; } }; struct B { B (const A &); }; template struct C { C (); S c; }; template C::C () { B *b = new B (*c); }