This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bug or illegal code???
- To: Scott Bambrough <scottb at netwinder dot org>
- Subject: Re: bug or illegal code???
- From: Neil Booth <neilb at earthling dot net>
- Date: Fri, 17 Nov 2000 23:30:14 +0000
- Cc: gcc bugs list <gcc-bugs at gcc dot gnu dot org>
- References: <3A15BBE4.BEA71136@netwinder.org>
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.