This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Strange behaviour gcc 3.0
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Strange behaviour gcc 3.0
- From: Igmar Palsenberg <i dot palsenberg at jdimedia dot nl>
- Date: Wed, 1 Aug 2001 12:34:58 +0200 (CEST)
- cc: <gcc at gcc dot gnu dot org>
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