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]

Re: bug or illegal code???


Well, it's not ISO C but it's OK GNU syntax.  CVS and recent snapshots
give something along the lines of

# 1 "/home/neil/test.c"


int err_out (char *file, int line, char *fmt, ...)
{
  return 0;
}

int main (int argc, char **argv)
{
   err_out("/home/neil/test.c", 10, "test output: %s\n", "my string");
   err_out("/home/neil/test.c", 11, "test output: %s %d\n", "my string", 1);
}

The preprocessor in RH 7.0 is quite buggy.  I would suggest you
upgrade.

Neil.

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