https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78469
Bug ID: 78469 Summary: [7 Regression] defaulted default constructor causes bogus requirement for accessible destructor Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org CC: lucdanton at free dot fr Target Milestone: --- Originally added as a comment on Bug 57082 and bisected to r239783: struct no_destr { no_destr() = default; protected: ~no_destr() = default; }; int main() { // error: 'no_destr::~no_destr()' is protected within this context new no_destr (); }