-
- Downloads
re PR c++/27961 (ICE on invalid template declaration)
PR c++/27961 * decl.c (start_decl): Return error_mark_node if a function is initialized like a variable. (check_var_type): If a variable of field is declared void, set the type to error_mark_node. (grokdeclarator): Check the return type of check_var_type. * class.c (finish_struct_1): Robustify. * g++.dg/template/crash60.C: New test. * g++.dg/other/large-size-array.C: Adjust error markers. * g++.dg/parse/crash27.C: Likewise. * g++.dg/template/crash1.C: Likewise. From-SVN: r117671
Showing
- gcc/cp/ChangeLog 10 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/class.c 1 addition, 0 deletionsgcc/cp/class.c
- gcc/cp/decl.c 7 additions, 4 deletionsgcc/cp/decl.c
- gcc/testsuite/ChangeLog 8 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/other/large-size-array.C 1 addition, 1 deletiongcc/testsuite/g++.dg/other/large-size-array.C
- gcc/testsuite/g++.dg/parse/crash27.C 0 additions, 1 deletiongcc/testsuite/g++.dg/parse/crash27.C
- gcc/testsuite/g++.dg/template/crash1.C 1 addition, 1 deletiongcc/testsuite/g++.dg/template/crash1.C
Loading
Please register or sign in to comment