aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/check-init.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-06-26 00:07:09 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-06-26 00:07:09 +0000
commit3fe18f1d4722d2cc202978537ec28ba3668e5cc8 (patch)
tree281a1acd47d7c8c8c2b28917010ced8fb26b4b98 /gcc/java/check-init.c
parent22c7c85ebc1408ab528f400094e5dc513e51dcdc (diff)
downloadgcc-3fe18f1d4722d2cc202978537ec28ba3668e5cc8.zip
gcc-3fe18f1d4722d2cc202978537ec28ba3668e5cc8.tar.gz
gcc-3fe18f1d4722d2cc202978537ec28ba3668e5cc8.tar.bz2
re PR c++/10931 (valid conversion static_cast<const unsigned int&>(lvalue-of-type-int) is rejected)
PR c++/10931 * g++.dg/expr/static_cast1.C: New test. PR c++/10931 * call.c (convert_like): Pass issue_conversion_warnings. (convert_like_with_context): Likewise. (convert_like_real): Add issue_conversion_warnings parameter. (perform_direct_initialization_if_possible): New function. * cp-tree.h (perform_direct_initialization_if_possible): Declare it. * typeck.c (check_for_casting_away_constness): New function. (build_static_cast): Rewrite. From-SVN: r68506
Diffstat (limited to 'gcc/java/check-init.c')
0 files changed, 0 insertions, 0 deletions