From: Jakub Jelinek Date: Fri, 5 Sep 2025 09:55:01 +0000 (+0200) Subject: c++: Fix cxx_eval_cxa_builtin_fn diagnostic message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=911ec2e09bcfadb2ff8cc2e326ef5798acc96733;p=thirdparty%2Fgcc.git 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 * constexpr.cc (cxx_eval_cxa_builtin_fn): Add missing word separating space into invalid_nargs diagnostics. --- diff --git a/gcc/cp/constexpr.cc b/gcc/cp/constexpr.cc index c3d05248a9a..db363dc2760 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;