From: Martin Liska Date: Wed, 12 Sep 2018 10:39:45 +0000 (+0200) Subject: Add quotes for -fconstexpr-depth= in an error message. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e7a6ed74d33c5bf28cd1d8e6e855373aec13b19;p=gcc.git Add quotes for -fconstexpr-depth= in an error message. From-SVN: r264233 --- 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;