]> gcc.gnu.org Git - gcc.git/commit
re PR c++/31449 ([4.1] static_cast can remove const-ness)
authorMark Mitchell <mark@codesourcery.com>
Mon, 9 Apr 2007 19:45:53 +0000 (19:45 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 9 Apr 2007 19:45:53 +0000 (19:45 +0000)
commita607b96e80f5790c88b80a8ac0b0c0dd88fe413b
tree2e58e8f6b8559201c4de3c552c43bd48eba5d9f9
parent80ae8e8ad2efea97a01aad6cb4656e7fb5b0fd55
re PR c++/31449 ([4.1] static_cast can remove const-ness)

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.

From-SVN: r123679
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/const5.C [new file with mode: 0644]
This page took 0.059778 seconds and 5 git commands to generate.