[Bug c++/67006] type-specifier const in declaration of anonymous union

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 7 03:06:11 GMT 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=64644

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note the warning changed to an error in GCC 8:
<source>:2:14: error: anonymous union with no members
 const union {};
              ^

This was because of PR 64644.


More information about the Gcc-bugs mailing list