diff options
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 906cfe0a58c..f48f4605b0f 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -2616,8 +2616,8 @@ check_template_variable (tree decl) { if (cxx_dialect < cxx14) pedwarn (DECL_SOURCE_LOCATION (decl), 0, - "variable templates only available with " - "-std=c++14 or -std=gnu++14"); + "variable templates only available with " + "%<-std=c++14%> or %<-std=gnu++14%>"); // Namespace-scope variable templates should have a template header. ++wanted; @@ -5292,7 +5292,7 @@ check_default_tmpl_args (tree decl, tree parms, bool is_primary, "friend declarations"); else if (TREE_CODE (decl) == FUNCTION_DECL && (cxx_dialect == cxx98)) msg = G_("default template arguments may not be used in function templates " - "without -std=c++11 or -std=gnu++11"); + "without %<-std=c++11%> or %<-std=gnu++11%>"); else if (is_partial) msg = G_("default template arguments may not be used in " "partial specializations"); @@ -10191,7 +10191,7 @@ push_tinst_level_loc (tree tldcl, tree targs, location_t loc) at_eof = 2; fatal_error (input_location, "template instantiation depth exceeds maximum of %d" - " (use -ftemplate-depth= to increase the maximum)", + " (use %<-ftemplate-depth=%> to increase the maximum)", max_tinst_depth); return false; } @@ -24727,9 +24727,9 @@ instantiate_pending_templates (int retries) fatal_error (input_location, "template instantiation depth exceeds maximum of %d" - " instantiating %q+D, possibly from virtual table generation" - " (use -ftemplate-depth= to increase the maximum)", - max_tinst_depth, decl); + " instantiating %q+D, possibly from virtual table generation" + " (use %<-ftemplate-depth=%> to increase the maximum)", + max_tinst_depth, decl); if (TREE_CODE (decl) == FUNCTION_DECL) /* Pretend that we defined it. */ DECL_INITIAL (decl) = error_mark_node; @@ -25102,7 +25102,7 @@ invalid_nontype_parm_type_p (tree type, tsubst_flags_t complain) if (cxx_dialect < cxx2a) { error ("non-type template parameters of class type only available " - "with -std=c++2a or -std=gnu++2a"); + "with %<-std=c++2a%> or %<-std=gnu++2a%>"); return true; } if (!complete_type_or_else (type, NULL_TREE)) |