This is the mail archive of the gcc-patches@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]

Re: C++ PATCH for c++/47999 (incorrect auto deduction in template)


On Wed, Mar 16, 2011 at 9:23 AM, Jason Merrill <jason@redhat.com> wrote:
> 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.
>
>
> commit 79330512f8ade4ecff47ab8cb8c050440d9648e0
> Author: Jason Merrill <jason@redhat.com>
> Date: ? Tue Mar 8 08:46:41 2011 -0500
>
> ? ? ? ?PR c++/47999
> ? ? ? ?* semantics.c (finish_call_expr): Preserve reference semantics
> ? ? ? ?in templates.
>

This may have caused:

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


-- 
H.J.


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