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 c/21453] Assignments to conditional expressions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]