This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/16192] Bug in expression evaluation when operand is missing


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]