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

commit r16-5958-gc7136f5b378e2684cf291b21e9a512c4c30ba9ef
Author: Jonathan Wakely <[email protected]>
Date:   Fri Dec 5 15:59:23 2025 +0000

    libstdc++: Remove redundant diagnostic pragmas from 
<bits/iterator_concepts.h>
    
    Since r16-2190-g4faa42ac0dee2c this header no longer mentions __int128
    explicitly, because it's just handled like other integer types now. So
    we don't need the diagnostic pragmas to disables pedwarns for referring
    to __int128.
    
    libstdc++-v3/ChangeLog:
    
            * include/bits/iterator_concepts.h: Remove diagnostic pragmas.

Diff:
---
 libstdc++-v3/include/bits/iterator_concepts.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libstdc++-v3/include/bits/iterator_concepts.h 
b/libstdc++-v3/include/bits/iterator_concepts.h
index fd91b22d75a5..40ac808f6b6b 100644
--- a/libstdc++-v3/include/bits/iterator_concepts.h
+++ b/libstdc++-v3/include/bits/iterator_concepts.h
@@ -39,9 +39,6 @@
 #include <bits/ptr_traits.h>   // to_address
 #include <bits/ranges_cmp.h>   // identity, ranges::less
 
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wpedantic" // __int128
-
 namespace std _GLIBCXX_VISIBILITY(default)
 {
 _GLIBCXX_BEGIN_NAMESPACE_VERSION
@@ -1032,6 +1029,5 @@ namespace ranges
 #endif // C++20 library concepts
 _GLIBCXX_END_NAMESPACE_VERSION
 } // namespace std
-#pragma GCC diagnostic pop
 #endif // C++20
 #endif // _ITERATOR_CONCEPTS_H

Reply via email to