diff options
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 714b508..534aaa3 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1293,7 +1293,7 @@ process_subob_fn (tree fn, tree *spec_p, bool *trivial_p, if (diag) { inform (DECL_SOURCE_LOCATION (fn), - "defaulted constructor calls non-constexpr %qD", fn); + "defaulted constructor calls non-%<constexpr%> %qD", fn); explain_invalid_constexpr_fn (fn); } } @@ -2257,8 +2257,8 @@ defaulted_late_check (tree fn) if (!CLASSTYPE_TEMPLATE_INSTANTIATION (ctx)) { error ("explicitly defaulted function %q+D cannot be declared " - "as constexpr because the implicit declaration is not " - "constexpr:", fn); + "as %<constexpr%> because the implicit declaration is not " + "%<constexpr%>:", fn); explain_implicit_non_constexpr (fn); } DECL_DECLARED_CONSTEXPR_P (fn) = false; |