[Bug c++/90825] [9/10 Regression] g++: internal compiler error: Segmentation fault signal terminated program cc1plus

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 10 23:56:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90825

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This hunk in particular:

@@ -4581,8 +4713,9 @@ cxx_eval_constant_expression (const constexpr_ctx *ctx,
tree t,
       break;

     case SIZEOF_EXPR:
-      r = fold_sizeof_expr (t);
-      VERIFY_CONSTANT (r);
+      r = cxx_eval_constant_expression (ctx, fold_sizeof_expr (t), lval,
+                   non_constant_p, overflow_p,
+                   jump_target);
       break;

     case COMPOUND_EXPR:


More information about the Gcc-bugs mailing list