preprocessor/2882: code inside "#if 0" generates warnings with -pedantic
Carlo Wood
carlo@alinoe.com
Sun May 20 13:56:00 GMT 2001
The following reply was made to PR preprocessor/2882; it has been noted by GNATS.
From: Carlo Wood <carlo@alinoe.com>
To: "Markus F.X.J. Oberhumer" <markus@oberhumer.com>
Cc: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org
Subject: Re: preprocessor/2882: code inside "#if 0" generates warnings with -pedantic
Date: Sun, 20 May 2001 22:46:38 +0200
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 <carlo@alinoe.com>
More information about the Gcc-prs
mailing list