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++/10483] Spurious reference created to integer constant in ternary op


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-03 05:58 -------
(In reply to comment #2)
> Should this be revisited now that gcc-4.x has disallowed
> ternaries as lvalues?  My users are somewhat mystified
> as to why they need to declare storage for integer
> constants whose address is never taken.

Because that is what the standard allows.  Also if you turn on optimization, the references go away.

Reopening to ...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10483


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