From: Ville Voutilainen Date: Sat, 10 Oct 2020 10:57:17 +0000 (+0300) Subject: libstdc++: Fix variant build on 32-bit targets [PR95904] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02cbd79e4728319e0887ad7783297853b527bb13;p=gcc.git libstdc++: Fix variant build on 32-bit targets [PR95904] libstdc++-v3/ChangeLog: * include/std/variant (__check_visitor_result): Use size_t for indexes. (__check_visitor_results): Likewise. --- diff --git a/libstdc++-v3/include/std/variant b/libstdc++-v3/include/std/variant index b32e564fd41..a29c5bf513b 100644 --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -1714,7 +1714,7 @@ namespace __variant template constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); - template + template decltype(auto) __check_visitor_result(_Visitor&& __vis, _Variant&& __variant) { @@ -1722,7 +1722,7 @@ namespace __variant std::get<_Idx>(std::forward<_Variant>(__variant))); } - template + template constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) { return __same_types(