* typeck.c (build_static_cast): Don't allow static_casts that cast
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 May 1999 15:26:25 +0000 (15:26 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 May 1999 15:26:25 +0000 (15:26 +0000)
commitf5139c2f4115c48b05a531ecd19f78c6b116c2ca
treeca3847974001bbec2a339db5d2379484a1d6c8c5
parentf0d0ef7c275742b8e3ca83545b4b21fcd891c9a8
* typeck.c (build_static_cast): Don't allow static_casts that cast
away constness.
(casts_away_constness_r): New function.
(casts_away_constness): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27128 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.other/sc1.C [new file with mode: 0644]