C++ PATCH for c++/47851 (type mismatch between decltype and not)

Jason Merrill jason@redhat.com
Tue Mar 1 22:42:00 GMT 2011


standard_conversion, when asked for a conversion from Type& to const 
Type, was returning a conversion to non-const Type.  So when fold 
stripped the COND_EXPR, operand 1 had a different type from the 
COND_EXPR as a whole, and so we got surprising results.

Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 47851.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110301/255d3715/attachment.ksh>


More information about the Gcc-patches mailing list