This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47999] [C++0x] auto type deduction works incorrectly in a function template
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Mar 2011 17:04:38 +0000
- Subject: [Bug c++/47999] [C++0x] auto type deduction works incorrectly in a function template
- Auto-submitted: auto-generated
- References: <bug-47999-4@http.gcc.gnu.org/bugzilla/>
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