// PR c++/109506 // { dg-do link { target c++11 } } // { dg-additional-options "-fchecking=2" } template struct foo { foo() { }; }; template class bar { foo alloc_{}; }; template bar func1() { return bar{}; } int main() { func1(); }