re PR c++/47999 ([C++0x] auto type deduction works incorrectly in a function template)
authorJason Merrill <jason@redhat.com>
Wed, 16 Mar 2011 17:04:30 +0000 (13:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 16 Mar 2011 17:04:30 +0000 (13:04 -0400)
commitbb4586d38825faf532f8dd12c73049410563ee7c
treeb52452674927ebc84d6820aa58bd3129547bd535
parenta8d7041a307a92daf512f1b076832834cdb16c9b
re PR c++/47999 ([C++0x] auto type deduction works incorrectly in a function template)

PR c++/47999
* semantics.c (finish_call_expr): Preserve reference semantics
in templates.

From-SVN: r171053
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto22.C [new file with mode: 0644]