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]

Strange behaviour gcc 3.0




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



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