This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in gcc
- To: Nilmoni Deb <ndeb at ece dot cmu dot edu>
- Subject: Re: Bug in gcc
- From: Mo McKinlay <mmckinlay at gnu dot org>
- Date: Sat, 26 Aug 2000 01:14:30 +0100 (BST)
- cc: bug-gcc at gnu dot org
- Organization: inter/open Labs
> Hi,
> I noticed this bug in gcc of versions 2.95.1, 2.7.2.3, 2.8.1, and
> egcs-2.91.66.
>
> If I have a two statements in a header file as follows:
>
> int NOM_CURVATURE = 35;
> #define NOM_CURVATURE 35
>
>
> the gcc compiler accepts this !!
It should. There's nothing wrong with those statements, provided they
appear in that order. The only problems would arise if you did:
NOM_CURVATURE = 36;
At which point the preprocessor would turn it into:
35 = 36;
Which is obviously a syntax error.
--
Mo McKinlay Chief Software Architect inter/open Labs
-------------------------------------------------------------------------
GnuPG Key: pub 1024D/76A275F9 2000-07-22 Mo McKinlay <mmckinlay@gnu.org>