This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31449] [4.1/4.2] static_cast can remove const-ness
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Apr 2007 03:01:20 -0000
- Subject: [Bug c++/31449] [4.1/4.2] static_cast can remove const-ness
- References: <bug-31449-11271@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from mmitchel at gcc dot gnu dot org 2007-04-10 04:01 -------
Subject: Bug 31449
Author: mmitchel
Date: Tue Apr 10 04:01:08 2007
New Revision: 123690
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123690
Log:
PR c++/31449
* class.c (build_base_path): Ensure that the converted pointer has
the same cv-qualification as the input.
PR c++/31449
* g++.dg/init/const5.C: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/init/const5.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/class.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31449