[Bug preprocessor/16192] Bug in expression evaluation when operand is missing
zack at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jun 25 17:47:00 GMT 2004
------- Additional Comments From zack at gcc dot gnu dot org 2004-06-25 17:47 -------
The reporter is correct, gcc is misbehaving here - more by the absence of a
diagnostic than by the precise contents of the output, but it *is* documented to
treat an ill-formed #if as having failed. And I have no idea where you got the
idea that (x < 2) && (y == 2) should succeed, where 'x' and 'y' are both
non-macros - that expands to (0 < 2) && (0 == 2) which is obviously false.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2004-06-25 17:47:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16192
More information about the Gcc-bugs
mailing list