https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57082

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to lucdanton from comment #1)
> 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 {};
> }

And that doesn't depend on brace-init either, so is a different issue. I've
reported it as Bug 78469

Reply via email to