This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/58154] if declaration and definition of a function differ in scope, emit a warning
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Aug 2013 13:30:47 +0000
- Subject: [Bug c/58154] if declaration and definition of a function differ in scope, emit a warning
- Auto-submitted: auto-generated
- References: <bug-58154-4 at http dot gcc dot gnu dot org/bugzilla/>
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.