aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/java/awt/geom
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-07-15 16:10:05 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2005-07-15 16:10:05 +0000
commit34b5375faef75cab6ecda04f161e5b81f662b2cb (patch)
tree59867dcc10601c3cce82c828262ad523c4dfee3a /libjava/classpath/java/awt/geom
parente27d6202c07dbc70172733fcf6e79cb2ffe9a56c (diff)
downloadgcc-34b5375faef75cab6ecda04f161e5b81f662b2cb.zip
gcc-34b5375faef75cab6ecda04f161e5b81f662b2cb.tar.gz
gcc-34b5375faef75cab6ecda04f161e5b81f662b2cb.tar.bz2
re PR c++/22132 (Wrong code: upcasting a const class pointer to struct the class derives from (C/old-style cast))
PR c++/22132 * call.c (implicit_conversion): Add c_cast_p parameter. (standard_conversion): Likewise. Allow conversions between differently-qualified pointer types when performing a C-style cast. (add_function_candidate): Adjust callee. (build_builtin_candidate): Likewise. (build_user_type_conversion_1): Likewise. (conditional_conversion): Likewise. (can_convert_arg): Likewise. (can_convert_arg_bad): Likewise. (perform_implicit_conversion): Likewise. * cp-tree.h (comp_ptr_ttypes_const): Declare. * typeck.c (comp_ptr_ttypes_const): Give it external linkage. Return bool. PR c++/22132 * g++.dg/expr/cast4.C: New test. From-SVN: r102059
Diffstat (limited to 'libjava/classpath/java/awt/geom')
0 files changed, 0 insertions, 0 deletions