This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/21453] Assignments to conditional expressions
- 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 May 2005 15:41:34 -0000
- Subject: [Bug c/21453] Assignments to conditional expressions
- References: <20050508152149.21453.jozef.behran@krs.sk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-08 15:41 -------
This was an extension in GCC before 4.0.0. It was removed. Though this is valid C++, this is not valid
C.
This is a bug in binutils, the way to fix it would be like:
if (i) p = r; else q = r;
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21453