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++/44673] static const variable works in if/else, fails at linking in ternary



------- Comment #6 from redi at gcc dot gnu dot org  2010-06-25 23:08 -------
in this variation the result is not an lvalue, so you can get away without a
definition:

 (b == 0) ? (int)VAR1 : VAR2


-- 


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


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