[Bug c++/111247] Very confusing diagnostic when attempting to initialize an incomplete type: "too many initializers"
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 30 21:16:07 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111247
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-08-30
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 7 and before used to also provide:
```
<source>:7:23: error: invalid use of incomplete type 'class Incomplete'
<source>:2:7: note: forward declaration of 'class Incomplete'
class Incomplete;
^~~~~~~~~~
```
Confirmed.
More information about the Gcc-bugs
mailing list