https://gcc.gnu.org/g:6df697847773d21ad8276de38131413aa5c5e3b0

commit r16-952-g6df697847773d21ad8276de38131413aa5c5e3b0
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue May 20 15:14:42 2025 +0100

    libstdc++: Disable -Wlong-long warnings in boost_concept_check.h
    
    The _IntegerConcept, _SignedIntegerConcept and _UnsignedIntegerConcept
    class template are specialized for long long, which gives warnings with
    -Wsystem-headers in C++98 mode.
    
    libstdc++-v3/ChangeLog:
    
            * include/bits/boost_concept_check.h: Disable -Wlong-long
            warnings.
            * testsuite/24_iterators/operations/prev_neg.cc: Adjust dg-error
            line number.

Diff:
---
 libstdc++-v3/include/bits/boost_concept_check.h            | 1 +
 libstdc++-v3/testsuite/24_iterators/operations/prev_neg.cc | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/bits/boost_concept_check.h 
b/libstdc++-v3/include/bits/boost_concept_check.h
index 7a99f7442cfe..a1f488dd8af1 100644
--- a/libstdc++-v3/include/bits/boost_concept_check.h
+++ b/libstdc++-v3/include/bits/boost_concept_check.h
@@ -68,6 +68,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
+#pragma GCC diagnostic ignored "-Wlong-long"
 
 #define _IsUnused __attribute__ ((__unused__))
 
diff --git a/libstdc++-v3/testsuite/24_iterators/operations/prev_neg.cc 
b/libstdc++-v3/testsuite/24_iterators/operations/prev_neg.cc
index f9de894be2e5..5fdfa9ec1cb1 100644
--- a/libstdc++-v3/testsuite/24_iterators/operations/prev_neg.cc
+++ b/libstdc++-v3/testsuite/24_iterators/operations/prev_neg.cc
@@ -38,5 +38,5 @@ test02()
 {
   const Y array[1] = { };
   (void) std::prev(array + 1);
-  // { dg-error "forward_iterator" "" { target *-*-* } 241 }
+  // { dg-error "forward_iterator" "" { target *-*-* } 242 }
 }

Reply via email to