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 {};
}

Reply via email to