[Bug c++/44673] static const variable works in if/else, fails at linking in ternary

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Jun 26 00:25:00 GMT 2010



------- Comment #8 from pinskia at gcc dot gnu dot org  2010-06-26 00:25 -------
(In reply to comment #7)
> (In reply to comment #4)
> > In the case of if, the value was "inlined" and in the case of ?:, it is not.  I
> > had a patch which changed the behavior but lost it when I moved companies.
> 
> And what did your patch do exactly?

It was able to look into xyz?decl1:decl2 and create xyz?ABC:DEF; but I cannot
remember where I placed it.  It worked for lvalues too because this part was
done after (a?b:c) = d; was converted into a?b = d: c = d; or the address
expression was pushed into the ?:.  


-- 


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



More information about the Gcc-bugs mailing list