* include/precompiled/stdc++.h: Include <span> for C++20.
        * testsuite/17_intro/names.cc: Do not define 'e' for C++20.

Tested powerpc64le-linux, committed to trunk.


commit 006bdafbe76441914f0743ea6879a27f2fa2edfd
Author: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Oct 4 12:16:56 2019 +0000

    Add <span> to <bits/stdc++.h> precompiled header
    
            * include/precompiled/stdc++.h: Include <span> for C++20.
            * testsuite/17_intro/names.cc: Do not define 'e' for C++20.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276574 
138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/libstdc++-v3/include/precompiled/stdc++.h 
b/libstdc++-v3/include/precompiled/stdc++.h
index d62f64b9f6e..4b668fddc03 100644
--- a/libstdc++-v3/include/precompiled/stdc++.h
+++ b/libstdc++-v3/include/precompiled/stdc++.h
@@ -139,7 +139,7 @@
 // #include <concepts>
 #include <numbers>
 // #include <ranges>
-// #include <span>
+#include <span>
 // #include <syncstream>
 #include <version>
 #endif
diff --git a/libstdc++-v3/testsuite/17_intro/names.cc 
b/libstdc++-v3/testsuite/17_intro/names.cc
index cab25498043..3d6148fa0e8 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -53,7 +53,10 @@
 #endif
 // <queue> and <stack> defined data members called c
 #define d (
+#if __cplusplus <= 201703L
+// <numbers> defines std::numbers::e
 #define e (
+#endif
 #define f (
 #define g (
 #if __cplusplus >= 201402L

Reply via email to