[Bug preprocessor/22168] #if #A == #B should have a diagnostic
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Fri Jun 24 15:42:00 GMT 2005
------- Additional Comments From pinskia at physics dot uc dot edu 2005-06-24 15:42 -------
Subject: Re: New: #if #A == #B should have a diagnostic
On Jun 23, 2005, at 10:04 PM, geoffk at gcc dot gnu dot org wrote:
> GCC quietly accepts the following:
>
> #define A a
> #define B a
> #if #A == #B
> #endif
In fact if we look at the output for the following code:
#define A b
#define B c
#if #A == #B
void g(void);
#endif
We find that "void g(void);" is always outputted so in fact
it does not do what David wanted it to do.
Thanks,
Andrew Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22168
More information about the Gcc-bugs
mailing list