re PR c++/35711 (bad text in -Wcast-qual warning (forgets volatile))
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 21 Apr 2009 19:49:23 +0000 (19:49 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 21 Apr 2009 19:49:23 +0000 (19:49 +0000)
commit36ef72625cd8bc38933adf8c06a7de4f093e98c6
tree252a0939bdbc3eeb3a8ea24b01705c79fcc71cfe
parentad41bd84ff7298f2eff1d0b99e1975f99bc8ba68
re PR c++/35711 (bad text in -Wcast-qual warning (forgets volatile))

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.

From-SVN: r146537
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]