------- Comment #13 from manu at gcc dot gnu dot org  2009-04-21 19:49 -------
Subject: Bug 35711

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  <m...@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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35711

Reply via email to