]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/constexpr.cc
c++: implement P2564, consteval needs to propagate up [PR107687]
[thirdparty/gcc.git] / gcc / cp / constexpr.cc
index 96c6166647058ea1a1bf864a56f29682667da5a2..58187a4fd1209711ffa73974b8e7682dbd3d3c95 100644 (file)
@@ -3128,11 +3128,11 @@ cxx_eval_call_expression (const constexpr_ctx *ctx, tree t,
        /* OK */;
       else if (!DECL_SAVED_TREE (fun))
        {
-         /* When at_eof >= 2, cgraph has started throwing away
+         /* When at_eof >= 3, cgraph has started throwing away
             DECL_SAVED_TREE, so fail quietly.  FIXME we get here because of
             late code generation for VEC_INIT_EXPR, which needs to be
             completely reconsidered.  */
-         gcc_assert (at_eof >= 2 && ctx->quiet);
+         gcc_assert (at_eof >= 3 && ctx->quiet);
          *non_constant_p = true;
        }
       else if (tree copy = get_fundef_copy (new_call.fundef))