[Bug c/55422] gcc does not diagnose change of linkage for a function.

cookevillain at yahoo dot com gcc-bugzilla@gcc.gnu.org
Sun Jan 28 01:30:00 GMT 2018


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

--- Comment #7 from cookevillain at yahoo dot com ---
(In reply to Andrew Pinski from comment #5)
> The first example is invalid C90 anyways:
> t4.c:10:3: error: ISO C90 forbids mixed declarations and code [-Wpedantic]

I forgot to mention it in my previous comment: this remark has also been
addressed byt the newer example. The only reason ff(0); was there to begin with
was to avoid a warning that ff is not used (which is irrelevant to the case at
hand but I wanted 'gcc is quiet' mean just that)


More information about the Gcc-bugs mailing list