[Bug c++/84676] [6/7/8 Regression] internal compiler error: Segmentation fault (build_new_op_1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84676 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|mpolacek at gcc dot gnu.org|unassigned at gcc dot gnu.org
[Bug c++/84676] [6/7/8 Regression] internal compiler error: Segmentation fault (build_new_op_1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84676 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
[Bug c++/84676] [6/7/8 Regression] internal compiler error: Segmentation fault (build_new_op_1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84676 --- Comment #3 from Marek Polacek --- Started with r208426.
[Bug c++/84676] [6/7/8 Regression] internal compiler error: Segmentation fault (build_new_op_1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84676 --- Comment #2 from Marek Polacek --- Untested fix: --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -5591,6 +5591,10 @@ build_new_op_1 (location_t loc, enum tree_code code, int flags, tree arg1, || error_operand_p (arg3)) return error_mark_node; + if (TREE_TYPE (arg1) == NULL_TREE + || TREE_TYPE (arg2) == NULL_TREE) +return error_mark_node; + bool ismodop = code == MODIFY_EXPR; if (ismodop) {
[Bug c++/84676] [6/7/8 Regression] internal compiler error: Segmentation fault (build_new_op_1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84676 Marek Polacek changed: What|Removed |Added Keywords||error-recovery Priority|P3 |P4 Target Milestone|--- |6.5 Summary|internal compiler error:|[6/7/8 Regression] internal |Segmentation fault |compiler error: |(build_new_op_1)|Segmentation fault ||(build_new_op_1)