[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
Tue Mar 29 14:30:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47999
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-29 14:25:49 UTC ---
Author: jason
Date: Tue Mar 29 14:25:37 2011
New Revision: 171670
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171670
Log:
PR c++/47999
* semantics.c (finish_call_expr): Preserve reference semantics
in templates.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/auto22.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list