c++: Improve error recovery for =.
In a template we were happily embedding error_mark_node in a MODOP_EXPR, leading to confusion later. gcc/cp/ChangeLog: * typeck.c (build_x_modify_expr): Handle error_mark_node arguments. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/lambda/lambda-ice30.C: Adjust. * g++.dg/cpp0x/lambda/lambda-ice31.C: Adjust. * g++.dg/ext/fixed1.C: Adjust. * g++.dg/template/crash107.C: Adjust. * g++.dg/template/error35.C: Adjust. * g++.dg/template/sizeof-template-argument.C: Adjust.
Showing
- gcc/cp/typeck.c 3 additions, 0 deletionsgcc/cp/typeck.c
- gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice30.C 2 additions, 2 deletionsgcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice30.C
- gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice31.C 1 addition, 1 deletiongcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice31.C
- gcc/testsuite/g++.dg/ext/fixed1.C 2 additions, 0 deletionsgcc/testsuite/g++.dg/ext/fixed1.C
- gcc/testsuite/g++.dg/template/crash107.C 2 additions, 2 deletionsgcc/testsuite/g++.dg/template/crash107.C
- gcc/testsuite/g++.dg/template/error35.C 1 addition, 1 deletiongcc/testsuite/g++.dg/template/error35.C
- gcc/testsuite/g++.dg/template/sizeof-template-argument.C 2 additions, 2 deletionsgcc/testsuite/g++.dg/template/sizeof-template-argument.C
Loading
Please register or sign in to comment