// PR c++/48500 struct linked_ptr { }; template linked_ptr make_linked_ptr(T* ptr); struct Concrete; struct NewedClass { NewedClass(const Concrete& req){} }; template void AddObjToChange(const ArgT& req) { linked_ptr p = make_linked_ptr(new NewedClass(req)); }