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/32692] Inconsistent warning/error with static and non-static declarations



------- 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


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