[Bug c/32692] Inconsistent warning/error with static and non-static declarations
sirl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jul 9 12:16:00 GMT 2007
------- 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);
static int func2 (int in)
{
return in;
}
extern int func3 (int);
static int func3 (int);
int func3 (int in)
{
return in;
}
static int func4 (int);
extern int func4 (int);
int func4 (int in)
{
return in;
}
extern int func5 (int);
static int func5 (int in)
{
return in;
}
static int func6 (int);
int func6 (int in)
{
return in;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32692
More information about the Gcc-bugs
mailing list