]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove workaround for modules issue [PR113814]
authorNathaniel Shead <nathanieloshead@gmail.com>
Mon, 4 Nov 2024 22:37:23 +0000 (09:37 +1100)
committerNathaniel Shead <nathanieloshead@gmail.com>
Mon, 4 Nov 2024 22:53:07 +0000 (09:53 +1100)
The modules bug requiring this workaround was fixed with commit
r15-4862-g815e48e3d42231.

PR testsuite/113710
PR c++/113814

libstdc++-v3/ChangeLog:

* include/bits/stl_pair.h: Remove workaround.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
libstdc++-v3/include/bits/stl_pair.h

index 0d60eaba1941e12e4f4b1aa8c5c068c9cec72a5d..e92fcad2d660b8572d47bf1bf5f3b3018afdd1d6 100644 (file)
@@ -1183,11 +1183,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     struct tuple_element<1, pair<_Tp1, _Tp2>>
     { typedef _Tp2 type; };
 
-  // Forward declare the partial specialization for std::tuple
-  // to work around modules bug PR c++/113814.
-  template<size_t __i, typename... _Types>
-    struct tuple_element<__i, tuple<_Types...>>;
-
 #if __cplusplus >= 201703L
   template<typename _Tp1, typename _Tp2>
     inline constexpr size_t tuple_size_v<pair<_Tp1, _Tp2>> = 2;