http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57082
Bug #: 57082 Summary: brace initialization requires public destructor Classification: Unclassified Product: gcc Version: 4.7.3 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: r...@gcc.gnu.org struct X { private: ~X() {} }; int main() { new X; // OK new X(); // OK new X{}; // ERROR } x.cc: In function 'int main()': x.cc:4:3: error: 'X::~X()' is private ~X() {} ^ x.cc:11:9: error: within this context new X{}; ^