https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91819
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91819
--- Comment #5 from Marek Polacek ---
Author: mpolacek
Date: Sun Sep 22 12:35:00 2019
New Revision: 276027
URL: https://gcc.gnu.org/viewcvs?rev=276027&root=gcc&view=rev
Log:
PR c++/91819 - ICE with operator++ and enum.
* call.c (
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91819
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91819
--- Comment #4 from Marek Polacek ---
Candidate fix:
diff --git gcc/cp/call.c gcc/cp/call.c
index b780b0af58e..b806faacf03 100644
--- gcc/cp/call.c
+++ gcc/cp/call.c
@@ -5878,7 +5885,10 @@ build_new_op_1 (const op_location_t &loc, enum tree_code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91819
--- Comment #3 from Marek Polacek ---
The problem is that for POSTINCREMENT_EXPR build_new_op_1 is called with null
arg2, so arg2_type is also null, but then we make arg2 nonnull
5887 if (code == POSTINCREMENT_EXPR || code == POSTDECREMENT_EXP
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91819
Marek Polacek changed:
What|Removed |Added
Keywords|needs-bisection |ice-on-valid-code
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91819
Richard Biener changed:
What|Removed |Added
Keywords||needs-bisection
Status|UNCO