re PR c++/49418 (G++ discards cv-quals from template parameter types)
authorJason Merrill <jason@redhat.com>
Tue, 21 Jun 2011 19:05:25 +0000 (15:05 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 21 Jun 2011 19:05:25 +0000 (15:05 -0400)
commit293678445f2f62406fabf6a70c2bdbae4e8346f3
tree969eefc4a892758a5b33d473d30d165e8b76b51f
parente0a8ecf2a2df715d56d193bd80f2c60dc1851359
re PR c++/49418 (G++ discards cv-quals from template parameter types)

PR c++/49418
* call.c (cxx_type_promotes_to): Don't strip cv-quals.
* semantics.c (lambda_return_type): Strip them here.

From-SVN: r175271
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/param3.C [new file with mode: 0644]