This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49418] [4.6 regression] G++ discards cv-quals from template parameter types


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]