This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/58154] if declaration and definition of a function differ in scope, emit a warning


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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
The definition has the storage-class specifier static so it gets internal
linkage which conflicts with the external linkage from the preceding
declaration.  See 6.2.2 #4.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]