From: marxin Date: Wed, 12 Sep 2018 10:39:45 +0000 (+0000) Subject: Add quotes for -fconstexpr-depth= in an error message. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f91d3a9d733b9985fc02ae62cbc7e6bc7a27417f;p=thirdparty%2Fgcc.git Add quotes for -fconstexpr-depth= in an error message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264233 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index db5c4d33a251..258a6ffd65db 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 68cdd8dc88e8..88c737879614 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;