]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/24667 (-Wcast-qual fails to warn about offending cast for a old style cast)
authorMark Mitchell <mark@codesourcery.com>
Tue, 15 Nov 2005 17:52:34 +0000 (17:52 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 15 Nov 2005 17:52:34 +0000 (17:52 +0000)
commit7735d402c405f05343b3ea732426eb5ca4b43b6a
treee55cf621262bd8905304880523a1cf0e0b671073
parent2dfedb225bcc487b2a1a3ce6a73ad9a359f7a493
re PR c++/24667 (-Wcast-qual fails to warn about offending cast for a old style cast)

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.

From-SVN: r107032
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wcast-qual1.C [new file with mode: 0644]