re PR c++/48450 ([C++0x][SFINAE] Hard errors with static_cast expressions)
authorJason Merrill <jason@redhat.com>
Thu, 7 Apr 2011 21:47:38 +0000 (17:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Apr 2011 21:47:38 +0000 (17:47 -0400)
commit3f89235e9d26a56e848d99a812177e149d87df3c
tree5dd7d0956d80da281484bf54821d606e208fb3f5
parent3cf0ca233fabc18547767ded4e4361bd632f6461
re PR c++/48450 ([C++0x][SFINAE] Hard errors with static_cast expressions)

PR c++/48450
* typeck.c (check_for_casting_away_constness): Take complain.
(build_static_cast_1, build_reinterpret_cast_1): Pass it.
(build_const_cast_1): Pass it.  Take full complain parm.
(build_const_cast, cp_build_c_cast): Adjust.

From-SVN: r172145
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wcast-qual-1.c [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wcast-qual2.C [deleted file]
gcc/testsuite/gcc.dg/cast-qual-3.c [deleted file]