]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/ChangeLog
PR c++/87481
[thirdparty/gcc.git] / gcc / cp / ChangeLog
index 61cf384e732d06b1e5acb3d3f4a05f84077fcd89..71f9d67edbe76a38bb64e753afa52ff77e1447fd 100644 (file)
@@ -1,3 +1,14 @@
+2019-03-22  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/87481
+       * constexpr.c (struct constexpr_ctx): Add constexpr_ops_count member.
+       (cxx_eval_constant_expression): When not skipping, not constant class
+       or location wrapper, increment *ctx->constexpr_ops_count and if it is
+       above constexpr_loop_nest_limit, diagnose failure.
+       (cxx_eval_outermost_constant_expr): Add constexpr_ops_count and
+       initialize ctx.constexpr_ops_count to its address.
+       (is_sub_constant_expr): Likewise.
+
 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/71446