[Bug c++/84664] [8 Regression] internal compiler error: in cp_perform_integral_promotions, at cp/typeck.c:2172
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 2 11:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84664
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |mpolacek at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Untested fix:
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -2161,6 +2161,8 @@ cp_perform_integral_promotions (tree expr, tsubst_flags_t
complain)
tree promoted_type;
expr = mark_rvalue_use (expr);
+ if (error_operand_p (expr))
+ return error_mark_node;
/* [conv.prom]
More information about the Gcc-bugs
mailing list