re PR c++/31743 (ICE with invalid use of new)
PR c++/31743 * parser.c (cp_parser_new_type_id): Don't reduce a named array type to its base type and number of elements here. * init.c (build_new): Call complete_type_or_else to ensure that the type is complete and to issue a diagnostic if it is not. (build_new_1): Don't call complete_type_or_else here. PR c++/31743 * g++.dg/init/new20.C: New test. From-SVN: r126292
Showing
gcc/testsuite/g++.dg/init/new20.C
0 → 100755
Please
register
or
sign in
to comment