[Bug c/58154] if declaration and definition of a function differ in scope, emit a warning
schwab@linux-m68k.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 14 13:02:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58154
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
There is no linkage conflict here. The definition inherits the internal
linkage of the preceding declaration, so the resulting linkage is internal.
See 6.2.2 #4 and #5. Don't confuse the concept of linkage with storage-class
specifiers.
More information about the Gcc-bugs
mailing list