Hi

A recently add diagnostic has a trailing space which triggers a warning.
Fixed thus.

tested on x86_64-darwin, applied to master, will also apply to 10.2
thanks
Iain

gcc/cp/ChangeLog:

        * coroutines.cc (morph_fn_to_coro): Remove trailing
        space in a diagnostic.
---
 gcc/cp/coroutines.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc
index ba4ac682f11..bec7f2f2027 100644
--- a/gcc/cp/coroutines.cc
+++ b/gcc/cp/coroutines.cc
@@ -4119,7 +4119,7 @@ morph_fn_to_coro (tree orig, tree *resumer, tree 
*destroyer)
     else if (!grooaf && TYPE_NOTHROW_P (TREE_TYPE (func)))
       warning_at (fn_start, 0, "%qE is marked %<throw()%> or %<noexcept%> but"
                  " no usable %<get_return_object_on_allocation_failure%>"
-                 " is provided by %qT ", nwname, promise_type);
+                 " is provided by %qT", nwname, promise_type);
     }
   else /* No operator new in the promise.  */
     {
-- 
2.24.1


Reply via email to