OSDN Git Service

2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Apr 2009 19:49:23 +0000 (19:49 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Apr 2009 19:49:23 +0000 (19:49 +0000)
commit9258414e0e4a23e4916c4f2196345632cb00b6d9
tree252a0939bdbc3eeb3a8ea24b01705c79fcc71cfe
parent7dfbd804a381759cfcc655daab0325f6b7d8b215
2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR c++/35711
cp/
* typeck.c (check_for_casting_away_constness): We diagnose casting
away any qualifiers not just constness.
(casts_away_constness): Mention that it handles more than just
constness.
testsuite/
* g++.dg/warn/pr35711.C: New.
* g++.dg/conversion/ptrmem2.C: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146537 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/ptrmem2.C
gcc/testsuite/g++.dg/warn/pr35711.C [new file with mode: 0644]