[Bug c++/57082] brace initialization requires public destructor
lucdanton at free dot fr
gcc-bugzilla@gcc.gnu.org
Fri Oct 28 06:50:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57082
lucdanton at free dot fr changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lucdanton at free dot fr
--- Comment #1 from lucdanton at free dot fr ---
Using a very similar testcase I bisected the issue 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 {};
}
More information about the Gcc-bugs
mailing list