re PR c++/9782 (constructor not called on higher-dimensional arrays of template types)
* cp-tree.h (rvalue): New function. * call.c (build_conditional_expr): Use it. * init.c (build_new_1): Likewise. * rtti.c (build_dynamic_cast_1): Likewise. * tree.c (rvalue): New function. * typeck.c (build_unary_op): Use it. (build_static_cast_1): Likewise. * g++.dg/expr/cast6.C: New test. PR c++/9782 * init.c (build_new_1): Make sure the entire array type is complete, not just its element types. PR c++/9782 * g++.dg/init/new15.C: New test. From-SVN: r103947
Showing
gcc/testsuite/g++.dg/expr/cast6.C
0 → 100644
gcc/testsuite/g++.dg/init/new15.C
0 → 100644
Please
register
or
sign in
to comment