Strange behaviour gcc 3.0
Igmar Palsenberg
i.palsenberg@jdimedia.nl
Wed Aug 1 03:35:00 GMT 2001
Hi,
[root@wrkst root]# gcc --version
3.0
Program :
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char ** argv)
{
printf("bogus"
#ifdef TEST
"testing"
#endif
);
}
Compiling :
[root@wrkst SPECS]# gcc -o x x.c
[root@wrkst SPECS]#
All fine.
[root@wrkst SPECS]# gcc -O2 -o x x.c
x.c:7:1: directives may not be used inside a macro argument
x.c:7:1: unterminated argument list invoking macro "printf"
x.c: In function `main':
x.c:10: parse error before ')' token
Code didn't change. This really strikes me.. Anyone can comment on this ??
Regards,
Igmar
--
Igmar Palsenberg
JDI Media Solutions
Boulevard Heuvelink 102
6828 KT Arnhem
The Netherlands
mailto: i.palsenberg@jdimedia.nl
PGP/GPG key : http://www.jdimedia.nl/formulier/pgp/igmar
More information about the Gcc-bugs
mailing list