aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-09-12 12:39:45 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-09-12 10:39:45 +0000
commit7e7a6ed74d33c5bf28cd1d8e6e855373aec13b19 (patch)
tree416dc8da5de73d3b201499159abc88628b3f59bc /gcc
parent6cd4c66e9bb92d66d4b5c1b21dfafe49f93eacc7 (diff)
downloadgcc-7e7a6ed74d33c5bf28cd1d8e6e855373aec13b19.zip
gcc-7e7a6ed74d33c5bf28cd1d8e6e855373aec13b19.tar.gz
gcc-7e7a6ed74d33c5bf28cd1d8e6e855373aec13b19.tar.bz2
Add quotes for -fconstexpr-depth= in an error message.
From-SVN: r264233
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/constexpr.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index db5c4d3..258a6ff 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-28 Martin Liska <mliska@suse.cz>
+
+ * constexpr.c (cxx_eval_call_expression): Add quotes
+ to -fconstexpr-depth=.
+
2018-09-10 Marek Polacek <polacek@redhat.com>
* class.c (build_vtbl_ref): Remove.
diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c
index 68cdd8d..88c7378 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 ("%<constexpr%> 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;