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


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