From 7e7a6ed74d33c5bf28cd1d8e6e855373aec13b19 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 12 Sep 2018 12:39:45 +0200 Subject: [PATCH] Add quotes for -fconstexpr-depth= in an error message. From-SVN: r264233 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/constexpr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index db5c4d33a25..258a6ffd65d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2018-08-28 Martin Liska + + * constexpr.c (cxx_eval_call_expression): Add quotes + to -fconstexpr-depth=. + 2018-09-10 Marek Polacek * class.c (build_vtbl_ref): Remove. diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c index 68cdd8dc88e..88c73787961 100644 --- a/gcc/cp/constexpr.c +++ b/gcc/cp/constexpr.c @@ -1669,7 +1669,7 @@ cxx_eval_call_expression (const constexpr_ctx *ctx, tree t, { if (!ctx->quiet) error ("% evaluation depth exceeds maximum of %d (use " - "-fconstexpr-depth= to increase the maximum)", + "%<-fconstexpr-depth=%> to increase the maximum)", max_constexpr_depth); *non_constant_p = true; result = error_mark_node; -- 2.30.2