This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49418] [4.6 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: Mon, 27 Jun 2011 20:16:18 +0000
- Subject: [Bug c++/49418] [4.6 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 #10 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-27 20:15:56 UTC ---
Author: jason
Date: Mon Jun 27 20:15:49 2011
New Revision: 175557
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175557
Log:
PR c++/49418
* call.c (cxx_type_promotes_to): Don't strip cv-quals.
* semantics.c (lambda_return_type): Strip them here.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/template/param3.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/call.c
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog