From: Nathaniel Shead Date: Mon, 4 Nov 2024 22:37:23 +0000 (+1100) Subject: libstdc++: Remove workaround for modules issue [PR113814] X-Git-Tag: basepoints/gcc-16~4613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35425d025b46a384fa89c4d06bd7c128d09e3009;p=thirdparty%2Fgcc.git libstdc++: Remove workaround for modules issue [PR113814] 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 --- diff --git a/libstdc++-v3/include/bits/stl_pair.h b/libstdc++-v3/include/bits/stl_pair.h index 0d60eaba1941..e92fcad2d660 100644 --- a/libstdc++-v3/include/bits/stl_pair.h +++ b/libstdc++-v3/include/bits/stl_pair.h @@ -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 - struct tuple_element<__i, tuple<_Types...>>; - #if __cplusplus >= 201703L template inline constexpr size_t tuple_size_v> = 2;