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: "gnu at behdad dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2004 18:03:22 -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 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