// PR c++/65390 // { dg-do compile } // { dg-options "" } template struct shared_ptr { }; template shared_ptr make_shared(Arg) { return shared_ptr(); } // { dg-error "variably modified type|trying to instantiate" } void f(int n){ make_shared(1); // { dg-error "no matching function" } }