This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/16192] Bug in expression evaluation when operand is missing
- From: "zack at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2004 17:47:09 -0000
- Subject: [Bug preprocessor/16192] Bug in expression evaluation when operand is missing
- References: <20040625060108.16192.gnu@behdad.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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