[Bug c++/64106] [5 Regression][C++14] internal compiler error: in cxx_eval_store_expression

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 3 10:57:00 GMT 2014


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I have a similar patch:

--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -2581,6 +2581,12 @@ cxx_eval_store_expression (const constexpr_ctx *ctx,
tree t,
          probe = TREE_OPERAND (probe, 0);
          break;

+       case INDIRECT_REF:
+         vec_safe_push (refs, TREE_OPERAND (probe, 0));
+         vec_safe_push (refs, TREE_TYPE (probe));
+         probe = TREE_OPERAND (probe, 0);
+         break;
+
        default:
          object = probe;
          gcc_assert (DECL_P (object));



More information about the Gcc-bugs mailing list