Re: preprocessor/2883: cpp stringizing problem 1

2001-05-20 Thread Carlo Wood
On Sun, May 20, 2001 at 08:44:32PM +0200, Markus F.X.J. Oberhumer wrote: > $ gcc-3.0 -c -Werror bug02.c > bug02.c:13:23: pasting ""_"" and ""foo"" does not give a valid preprocessing > token ... > #define ASM_NAME(x) __asm__("_" ## #x) A string literal can't form a new preprocessing token by c

Re: preprocessor/2882: code inside "#if 0" generates warnings with -pedantic

2001-05-20 Thread Carlo Wood
On Sun, May 20, 2001 at 08:39:40PM +0200, Markus F.X.J. Oberhumer wrote: > bug01.c:10:1: C++ style comments are not allowed in ISO C89 ... > #if 0 > // int bar =3D 1; > #endif Comments are processed before control lines. I don't see why this would be a bug. -- Carlo Wood <[EMAIL PROTECTED]>

Re: preprocessor/2881: code inside "#if 0" generates warnings with -pedantic

2001-05-20 Thread Neil Booth
Markus F.X.J. Oberhumer wrote:- > #if 0 > // int bar =3D 1; > #endif Zack, what's you opinion of this? Whether we accept the // can affect tokenisation, which must still be valid in skipped blocks. In other words, acceptance of #if 0 // ' #endif depends upon whether we accept //. I'm tempted

Re: preprocessor/2883: cpp stringizing problem 1

2001-05-20 Thread Zack Weinberg
On Sun, May 20, 2001 at 08:44:32PM +0200, Markus F.X.J. Oberhumer wrote: > $ gcc-3.0 -c -Werror bug02.c > bug02.c:13:23: pasting ""_"" and ""foo"" does not give a valid preprocessing > token ... > #define ASM_NAME(x) __asm__("_" ## #x) This is not valid C. As it says, pasting together the s

Re: code inside "#if 0" generates warnings with -pedantic

2001-05-20 Thread David Starner
At 08:34 PM 05/20/2001 +0200, Markus F.X.J. Oberhumer wrote: > X-no-Archive: yes Please don't send messages to these lists with X-no-Archive: yes. Both of these lists are archived, and such a practice is necessary for open development. If you don't want it archived, don't send it. -- David Starner:

Re: gcc-3.0 bug

2001-05-20 Thread Andrew 'ashridah' Pilley
On Sun, 20 May 2001 11:02:11 +0300 (EEST), Juha Mäkinen said: > My system is gnu/debian woody ( i.e. "testing" ). I got the gcc-3.0 during > the latest upgrade. But when I try to test things with a hello-world type > program, I get this > > gcc-3.0 test.cpp > gcc-3.0: installation problem,

gcc-3.0 bug

2001-05-20 Thread Juha Mäkinen
My system is gnu/debian woody ( i.e. "testing" ). I got the gcc-3.0 during the latest upgrade. But when I try to test things with a hello-world type program, I get this gcc-3.0 test.cpp gcc-3.0: installation problem, cannot exec `cc1plus': No such file or directory Now, this seems a debian-specif