[Bug c/21453] Assignments to conditional expressions

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun May 8 15:41:00 GMT 2005


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



More information about the Gcc-bugs mailing list