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 gnu at behdad dot org  2004-06-26 18:03 -------
A bit of misinformation from my side.  "(x < 2) && (y == 2)" indeed works as
accepted if x and y are non-macros.  But the ill-formed case "(1 < 2) && ( ==
2)" should still fail.

More information, "(2 == )" fails with error.  "( == 2)" fails with no error. 
"(1< 2) && (2 == )" fails with error, and "(1 < 2) && ( == 2)" does not fail. 
In theory all of these four should fail with error.

-- 


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]