--- Comment #4 from geoffk at gcc dot gnu dot org 2007-07-09 19:34 ---
'external linkage' is not the same thing as 'the declaration contains the
keyword "extern"'.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32692
--- 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
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-07-09 12:16 ---
I thought we already decided the other way around should not error or warn.
>From gcc.dg/local1.c which is testing this exactly:
C90 6.1.2.2 [as corrected by TC1], C99 6.2.2:
For an identifier decl
--- Comment #1 from sirl at gcc dot gnu dot org 2007-07-09 12:15 ---
Since attaching files doesn't seem to work right now, here a copy'n'paste:
extern int func1 (int);
static int func1 (int);
static int func1 (int in)
{
return in;
}
static int func2 (int);
extern int func2 (int);