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



--- Comment #4 from cookevillain at yahoo dot com 2012-11-21 21:53:48 UTC ---

(In reply to comment #3)

> Looks like the first example is just an undefined behavior in which case GCC

> isn't obliged to issue an error.



Quite true. I just thought that the diagnostic should be consistent. In

addition, it is rare to use extern at block scope but a function declaration is

automatically `extern'ed in such case so this linkage inconsistency is even

harder to spot without a diagnostic when the inner `extern' is omitted.

Reply via email to