[Bug c++/49418] [4.6/4.7 regression] G++ discards cv-quals from template parameter types
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 21 19:05:00 GMT 2011
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
More information about the Gcc-bugs
mailing list