typeck.c (build_static_cast): Don't allow static_casts that cast away constness.
authorMark Mitchell <mark@codesourcery.com>
Mon, 24 May 1999 15:26:25 +0000 (15:26 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 24 May 1999 15:26:25 +0000 (15:26 +0000)
commitaf7b99029065dd164c850082195d70d6f46fb28e
treeca3847974001bbec2a339db5d2379484a1d6c8c5
parent671d0648e08e746d404b9f6422965ef52e6fc77c
typeck.c (build_static_cast): Don't allow static_casts that cast away constness.

* typeck.c (build_static_cast): Don't allow static_casts that cast
away constness.
(casts_away_constness_r): New function.
(casts_away_constness): Likewise.

From-SVN: r27128
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.other/sc1.C [new file with mode: 0644]