-
- Downloads
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/cp/ChangeLog 9 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/parser.c 6 additions, 7 deletionsgcc/cp/parser.c
- gcc/testsuite/ChangeLog 8 additions, 1 deletiongcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/template/error41.C 12 additions, 0 deletionsgcc/testsuite/g++.dg/template/error41.C
- gcc/testsuite/g++.dg/template/error42.C 20 additions, 0 deletionsgcc/testsuite/g++.dg/template/error42.C
Loading
Please register or sign in to comment