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 12:15:56 -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 #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