This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24667] [4.0/4.1 Regression] -Wcast-qual fails to warn about offending cast for a old style cast



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]