This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]