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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116769#c5:
```
I believe GCC, deliberately as an extension, treats NSDMIs as within the
"immediate context" of a defaulted default constructor synthesis.  So if NSDMI
instantiation fails the defaulted constructor gets defined as deleted instead
of issuing a hard error.  Strictly speaking the code is ill-formed though IIUC.
 There's probably an existing PR about this.
```

Reply via email to