aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-09-05 11:55:01 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2025-09-05 11:55:01 +0200
commit911ec2e09bcfadb2ff8cc2e326ef5798acc96733 (patch)
tree59b6c1a5b2082dcefc09b02e8e9abb6a85a19070
parent4c08331595c96a938e4ea2520da5ccf0771ab125 (diff)
downloadgcc-911ec2e09bcfadb2ff8cc2e326ef5798acc96733.zip
gcc-911ec2e09bcfadb2ff8cc2e326ef5798acc96733.tar.gz
gcc-911ec2e09bcfadb2ff8cc2e326ef5798acc96733.tar.bz2
c++: Fix cxx_eval_cxa_builtin_fn diagnostic message
Marek Polacek reported to me internally that I've messed up one diagnostic message in this function, with one word before final double quote on one line and another word right after opening double quote on the next line, with no space in between. Fixed thusly. 2025-09-05 Jakub Jelinek <jakub@redhat.com> * constexpr.cc (cxx_eval_cxa_builtin_fn): Add missing word separating space into invalid_nargs diagnostics.
-rw-r--r--gcc/cp/constexpr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/constexpr.cc b/gcc/cp/constexpr.cc
index c3d0524..db363dc 100644
--- a/gcc/cp/constexpr.cc
+++ b/gcc/cp/constexpr.cc
@@ -1860,7 +1860,7 @@ cxx_eval_cxa_builtin_fn (const constexpr_ctx *ctx, tree call,
{
invalid_nargs:
if (!ctx->quiet)
- error_at (loc, "call to %qD function with incorrect"
+ error_at (loc, "call to %qD function with incorrect "
"number of arguments", fndecl);
*non_constant_p = true;
return call;