https://gcc.gnu.org/g:0cb46354359cfb6c71cc0b66a72a89b9f666ec29

commit r16-153-g0cb46354359cfb6c71cc0b66a72a89b9f666ec29
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Fri Apr 25 15:57:56 2025 +0100

    libstdc++: Remove c++26 dg-error lines for -Wdelete-incomplete errors
    
    This fixes:
    FAIL: tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc  -std=gnu++26  
(test for errors, line 283)
    FAIL: tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc  -std=gnu++26  
(test for errors, line 305)
    
    This is another consequence of r16-133-g8acea9ffa82ed8 which prevents
    the -Wdelete-incomplete errors that happen after the first error.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
            Remove dg-error directives for additional c++26 errors.

Diff:
---
 .../testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc     | 3 ---
 1 file changed, 3 deletions(-)

diff --git 
a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc 
b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc
index 7b5ede4f00a9..03fad1486c7c 100644
--- 
a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc
+++ 
b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc
@@ -39,9 +39,6 @@ void test01()
   // { dg-error "incomplete" "" { target *-*-* } 600 }
 }
 
-// { dg-error "-Wdelete-incomplete" "" { target c++26 } 283 }
-// { dg-error "-Wdelete-incomplete" "" { target c++26 } 305 }
-
 // Ignore additional diagnostic given with -Wsystem-headers:
 // { dg-prune-output "has incomplete type" }
 // { dg-prune-output "possible problem detected" }

Reply via email to