[Bug c/125643] GCC accepts an empty declaration after a function argument list

harald at gigawatt dot nl gcc-bugzilla@gcc.gnu.org
Mon Jun 8 18:55:25 GMT 2026


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

Harald van Dijk <harald at gigawatt dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harald at gigawatt dot nl

--- Comment #3 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to Drea Pinski from comment #1)
> We accept it only without -pedantic and then without -pedantic we warn about
> it:

-pedantic has no effect on this? The warning is emitted by default, and remains
a warning when -pedantic is included in the options.

But with -pedantic-errors, the diagnostic is upgraded to an error.


More information about the Gcc-bugs mailing list