This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32692] Inconsistent warning/error with static and non-static declarations
- From: "sirl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2007 13:15:45 -0000
- Subject: [Bug c/32692] Inconsistent warning/error with static and non-static declarations
- References: <bug-32692-436@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from sirl at gcc dot gnu dot org 2007-07-09 13:15 -------
Sorry, apparently I forgot to search 'All' bugs instead of just the 'Open' ones
yesterday.
One question though, how does the func6() part of the testcase relate to all
this? For this one there is no 'extern' specifier anywhere, so shouldn't
sub-clause 7 of 6.2.2 apply here and thus a warning is justified?
7 If, within a translation unit, the same identifier appears with both internal
and external linkage, the behavior is undefined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32692