Hi!

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.

Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk
as obvious.

I really should rerun my scripts to search for this kind of errors in the
source soon.

2025-09-05  Jakub Jelinek  <[email protected]>

        * constexpr.cc (cxx_eval_cxa_builtin_fn): Add missing word separating
        space into invalid_nargs diagnostics.

--- gcc/cp/constexpr.cc.jj      2025-09-02 17:02:44.060177085 +0200
+++ gcc/cp/constexpr.cc 2025-09-04 20:52:10.811330805 +0200
@@ -1860,7 +1860,7 @@ cxx_eval_cxa_builtin_fn (const constexpr
     {
     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;

        Jakub

Reply via email to