[Bug c/22249] GCC does not reject an incompatible type declaration

egallager at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 2 02:31:15 GMT 2022


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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org

--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Martin Uecker from comment #2)
> This is diagnosed in GCC 11.
> 
> https://godbolt.org/z/GcE19jqbK

...as a warning, but I think the original reporter wanted it to be an error?
(or at least as a pedwarn instead of a regular warning)


More information about the Gcc-bugs mailing list