This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21960] Incorrect Syntax NOT rejected
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2005 14:18:34 -0000
- Subject: [Bug c++/21960] Incorrect Syntax NOT rejected
- References: <20050608141422.21960.eric@ez-soft.demon.nl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-08 14:18 -------
THis is valid code as comma is an operator.
a, b; is valid for all expressions, a and b. Since return is a statement and not an expression we get an
error for that case.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21960