[gcc r13-2751] libstdc++: Qualify std::abort() in test

Jonathan Wakely redi@gcc.gnu.org
Wed Sep 21 07:45:16 GMT 2022


https://gcc.gnu.org/g:d784c5cfe694fe8d5620504ae45ceaebb3cc9f7c

commit r13-2751-gd784c5cfe694fe8d5620504ae45ceaebb3cc9f7c
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Sep 21 00:39:14 2022 +0100

    libstdc++: Qualify std::abort() in test
    
    This test includes <cstdlib> so should use std::abort not ::abort.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/18_support/uncaught_exception/14026.cc: Qualify
            call to std::abort.

Diff:
---
 libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc b/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc
index 22d4a90d49e..bd281b97174 100644
--- a/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc
+++ b/libstdc++-v3/testsuite/18_support/uncaught_exception/14026.cc
@@ -28,7 +28,7 @@ static void
 no_uncaught ()
 {
   if (std::uncaught_exception())
-    abort();
+    std::abort();
 }
 
 int


More information about the Libstdc++-cvs mailing list