This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49418] [4.6/4.7 regression] G++ discards cv-quals from template parameter types
- 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: Tue, 21 Jun 2011 19:05:44 +0000
- Subject: [Bug c++/49418] [4.6/4.7 regression] G++ discards cv-quals from template parameter types
- Auto-submitted: auto-generated
- References: <bug-49418-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49418
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-21 19:05:28 UTC ---
Author: jason
Date: Tue Jun 21 19:05:25 2011
New Revision: 175271
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175271
Log:
PR c++/49418
* call.c (cxx_type_promotes_to): Don't strip cv-quals.
* semantics.c (lambda_return_type): Strip them here.
Added:
trunk/gcc/testsuite/g++.dg/template/param3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog