// PR c++/105803 // { dg-do compile } // { dg-additional-options "-fchecking=2" } namespace std { template class shared_ptr {}; } struct S {}; template void build_matrices() { std::shared_ptr(new S); }