https://gcc.gnu.org/g:7aab1271b4afb6f3e9e8a01825fcb14750b29312

commit r15-6080-g7aab1271b4afb6f3e9e8a01825fcb14750b29312
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Dec 10 14:58:18 2024 +0000

    testsuite: Fix cpp0x/trivial1.C for std::is_trivial deprecation in C++26
    
    std::is_trivial is deprecated in C++26, so this test needs to use
    -Wno-deprecated now.
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/cpp0x/trivial1.C: Add -Wno-deprecated for C++26.

Diff:
---
 gcc/testsuite/g++.dg/cpp0x/trivial1.C | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/g++.dg/cpp0x/trivial1.C 
b/gcc/testsuite/g++.dg/cpp0x/trivial1.C
index 3fed57042edb..a887dbba5200 100644
--- a/gcc/testsuite/g++.dg/cpp0x/trivial1.C
+++ b/gcc/testsuite/g++.dg/cpp0x/trivial1.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-deprecated" { target c++26 } }
 
 // [basic.types]/10:
 // Scalar types, trivial class types (Clause 9), arrays of such types and

Reply via email to