From 911ec2e09bcfadb2ff8cc2e326ef5798acc96733 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 5 Sep 2025 11:55:01 +0200 Subject: 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. --- gcc/cp/constexpr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') 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; -- cgit v1.1