https://gcc.gnu.org/g:985bc95bd64033cb9b21d6537cb413beb8fe4939
commit r15-5284-g985bc95bd64033cb9b21d6537cb413beb8fe4939 Author: Jason Merrill <ja...@redhat.com> Date: Wed Nov 13 23:39:53 2024 -0500 libstdc++: stdc++.h and <coroutine> r13-3036 moved #include <coroutine> into the new freestanding section, but also moved it from a C++20 section to a C++23 section. This patch moves it back. Incidentally, I'm curious why a few headers were removed from the hosted section (including <coroutine>), but most were left in place, so we have redundant includes of most hosted headers. libstdc++-v3/ChangeLog: * include/precompiled/stdc++.h: <coroutine> is C++20. Diff: --- libstdc++-v3/include/precompiled/stdc++.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h index 89917106bac2..15f7f3fe34a9 100644 --- a/libstdc++-v3/include/precompiled/stdc++.h +++ b/libstdc++-v3/include/precompiled/stdc++.h @@ -92,14 +92,14 @@ #include <span> #include <source_location> #include <version> +#if __cpp_impl_coroutine +# include <coroutine> +#endif #endif #if __cplusplus > 202002L #include <expected> #include <stdatomic.h> -#if __cpp_impl_coroutine -# include <coroutine> -#endif #endif #if _GLIBCXX_HOSTED