[committed] libstdc++: Fix operator% implementation for Clang

Message ID 12813636.nUPlyArG6x@minbar
State Committed
Commit 1a62008123694b2ac07f28e25fc6e5ff371925f5
Headers
Series [committed] libstdc++: Fix operator% implementation for Clang |

Commit Message

Matthias Kretz March 28, 2023, 10:42 a.m. UTC
  This resolves a regression of my previous fix where Clang would ICE on
_S_divides.

Signed-off-by: Matthias Kretz <m.kretz@gsi.de>

libstdc++-v3/ChangeLog:

	* include/experimental/bits/simd_x86.h (_SimdImplX86): Use
	_Base::_S_divides if the optimized _S_divides function is hidden
	via the preprocessor.
---
 libstdc++-v3/include/experimental/bits/simd_x86.h | 2 ++
 1 file changed, 2 insertions(+)


--
──────────────────────────────────────────────────────────────────────────
 Dr. Matthias Kretz                           https://mattkretz.github.io
 GSI Helmholtz Centre for Heavy Ion Research               https://gsi.de
 stdₓ::simd
──────────────────────────────────────────────────────────────────────────
  

Patch

diff --git a/libstdc++-v3/include/experimental/bits/simd_x86.h b/libstdc++-v3/include/experimental/bits/simd_x86.h
index 2a3e74d9119..fc3e96d696c 100644
--- a/libstdc++-v3/include/experimental/bits/simd_x86.h
+++ b/libstdc++-v3/include/experimental/bits/simd_x86.h
@@ -1524,6 +1524,8 @@  _CsrGuard()
 	  */
 	return _Base::_S_divides(__x, __y);
       }
+#else
+    using _Base::_S_divides;
 #endif // _GLIBCXX_SIMD_WORKAROUND_PR90993
 
     // }}}