https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119180
--- Comment #2 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- > Actual Result: > GCC compiles the code silently (or with -pedantic warns but still succeeds). "Warns but still succeeds" is a correct behavior. The standard NEVER says "the code should be rejected." It only says "diagnostic is required" and warning IS a diagnostic. Please stop assuming the code must be rejected when the standard mandates a diagnostic. > Impact: Non-portable code may fail on other compilers. It's not a bug GCC supports its own extensions. Please stop considering such things as bugs. The only real issue here is it's debatable if we should emit the warning by default, and that is PR 110848.