re PR c++/40370 (ICE with invalid array bound in template class)
PR c++/40370 PR c++/40372 * parser.c (cp_parser_direct_declarator): Don't set TREE_SIDE_EFFECTS on error_mark_node. Check for VLAs outside of function context before check whether to wrap bounds into a NOP_EXPR with TREE_SIDE_EFFECTS. * g++.dg/template/error41.C: New test. * g++.dg/template/error42.C: New test. From-SVN: r148278
Showing
gcc/testsuite/g++.dg/template/error41.C
0 → 100644
gcc/testsuite/g++.dg/template/error42.C
0 → 100644
Please
register
or
sign in
to comment