C++ PATCH for c++/47999 (incorrect auto deduction in template)
Jason Merrill
jason@redhat.com
Wed Mar 16 16:23:00 GMT 2011
In templates, we do overload resolution and then throw away most of it,
going back to the pre-conversion arguments. But when the call returns a
reference, we shouldn't elide the dereference and pretend it returns by
value, as that confuses lvalue_p.
Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 47999.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110316/7cdbdcc6/attachment.ksh>
More information about the Gcc-patches
mailing list