]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Fix cxx_eval_cxa_builtin_fn diagnostic message
authorJakub Jelinek <jakub@redhat.com>
Fri, 5 Sep 2025 09:55:01 +0000 (11:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 5 Sep 2025 09:55:01 +0000 (11:55 +0200)
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.

gcc/cp/constexpr.cc

index c3d05248a9a7ce8d4b1c50cac9ffb51ec4025538..db363dc2760700fa61f55bc404cd3e52b024bafb 100644 (file)
@@ -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;