blob: 84eedf8adfd4f452c9551fb29dfe0a0c310a31b8 [file] [log] [blame]
// PR c++/48500
struct linked_ptr {
};
template <typename T> linked_ptr make_linked_ptr(T* ptr);
struct Concrete;
struct NewedClass {
NewedClass(const Concrete& req){}
};
template<typename ArgT> void AddObjToChange(const ArgT& req) {
linked_ptr p = make_linked_ptr(new NewedClass(req));
}