r146537 - in /trunk/gcc: cp/ChangeLog cp/typeck...

manu@gcc.gnu.org manu@gcc.gnu.org
Tue Apr 21 19:49:00 GMT 2009


Author: manu
Date: Tue Apr 21 19:49:23 2009
New Revision: 146537

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146537
Log:
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.

Added:
    trunk/gcc/testsuite/g++.dg/warn/pr35711.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/conversion/ptrmem2.C



More information about the Gcc-cvs mailing list