[Bug c++/47999] [C++0x] auto type deduction works incorrectly in a function template

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 16 17:22:00 GMT 2011


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-16 17:04:35 UTC ---
Author: jason
Date: Wed Mar 16 17:04:30 2011
New Revision: 171053

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171053
Log:
    PR c++/47999
    * semantics.c (finish_call_expr): Preserve reference semantics
    in templates.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/auto22.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list