------- Comment #5 from mmitchel at gcc dot gnu dot org 2005-11-15 17:50 ------- Subject: Bug 24667
Author: mmitchel Date: Tue Nov 15 17:50:43 2005 New Revision: 107031 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107031 Log: PR c++/24667 * typeck.c (check_for_casting_away_constness): Use the diag_fn. (build_const_cast_1): Call it, for C-style casts. PR c++/24667 * g++.dg/warn/Wcast-qual1.C: New test. Added: branches/gcc-4_0-branch/gcc/testsuite/g++.dg/warn/Wcast-qual1.C Modified: branches/gcc-4_0-branch/gcc/cp/ChangeLog branches/gcc-4_0-branch/gcc/cp/typeck.c branches/gcc-4_0-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24667