cast6.C
86 Bytes
-
re PR c++/9782 (constructor not called on higher-dimensional arrays of template types) · 5cc53d4e
* 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
Mark Mitchell committed