Signed-off-by: Jonathan Wakely <jwak...@redhat.com>

libstdc++-v3/ChangeLog:

        * include/experimental/simd: Do not define anything pre-C++17.

Tested powerpc64le-linux. Committed to trunk.

commit 36adced3b6b7cae17d7b42e4573bd0f4194b1f70
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Jun 30 21:35:51 2021

    libstdc++: Make <experimental/simd> depend on C++17
    
    Signed-off-by: Jonathan Wakely <jwak...@redhat.com>
    
    libstdc++-v3/ChangeLog:
    
            * include/experimental/simd: Do not define anything pre-C++17.

diff --git a/libstdc++-v3/include/experimental/simd 
b/libstdc++-v3/include/experimental/simd
index da2d0479cf3..beccbc14fa5 100644
--- a/libstdc++-v3/include/experimental/simd
+++ b/libstdc++-v3/include/experimental/simd
@@ -33,6 +33,8 @@
 #ifndef _GLIBCXX_EXPERIMENTAL_SIMD
 #define _GLIBCXX_EXPERIMENTAL_SIMD
 
+#if __cplusplus >= 201703L
+
 #define __cpp_lib_experimental_parallel_simd 201803
 
 #pragma GCC diagnostic push
@@ -66,5 +68,6 @@
 
 #pragma GCC diagnostic pop
 
+#endif // C++17
 #endif // _GLIBCXX_EXPERIMENTAL_SIMD
 // vim: ft=cpp

Reply via email to