From: redi Date: Fri, 4 Oct 2019 12:16:56 +0000 (+0000) Subject: Add to precompiled header X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=006bdafbe76441914f0743ea6879a27f2fa2edfd;p=thirdparty%2Fgcc.git Add to precompiled header * include/precompiled/stdc++.h: Include 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/ChangeLog b/libstdc++-v3/ChangeLog index 7beb037110d8..0076d95100b4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-10-04 Jonathan Wakely + + * include/precompiled/stdc++.h: Include for C++20. + * testsuite/17_intro/names.cc: Do not define 'e' for C++20. + 2019-10-03 Rainer Orth * include/parallel/multiway_merge.h (_RAIter3): Replace _C by _Cp. diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h index d62f64b9f6e8..4b668fddc037 100644 --- a/libstdc++-v3/include/precompiled/stdc++.h +++ b/libstdc++-v3/include/precompiled/stdc++.h @@ -139,7 +139,7 @@ // #include #include // #include -// #include +#include // #include #include #endif diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc index cab254980430..3d6148fa0e8d 100644 --- a/libstdc++-v3/testsuite/17_intro/names.cc +++ b/libstdc++-v3/testsuite/17_intro/names.cc @@ -53,7 +53,10 @@ #endif // and defined data members called c #define d ( +#if __cplusplus <= 201703L +// defines std::numbers::e #define e ( +#endif #define f ( #define g ( #if __cplusplus >= 201402L