1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// PR c++/48873 #include <new> struct D { private: ~D(); }; template<class T> T& create(); void f() { D* dp = new (((void*) 0)) D(create<D>()); // # }