https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121827

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Untested fix:
2025-09-06  Jakub Jelinek  <[email protected]>

        PR libstdc++/121827
        * include/precompiled/extc++.h: Don't include ext/cast.h which is an
        internal header.
        * include/ext/pointer.h: Include bits/c++config.h before
        #if _GLIBCXX_HOSTED.

--- libstdc++-v3/include/precompiled/extc++.h   2025-01-02 20:54:32.906119166
+0100
+++ libstdc++-v3/include/precompiled/extc++.h   2025-09-06 09:57:53.949297638
+0200
@@ -37,7 +37,6 @@
 #endif
 #include <ext/alloc_traits.h>
 #include <ext/atomicity.h>
-#include <ext/cast.h>
 #include <ext/iterator>
 #include <ext/numeric_traits.h>
 #include <ext/pointer.h>
--- libstdc++-v3/include/ext/pointer.h.jj       2025-01-02 20:54:32.900119249
+0100
+++ libstdc++-v3/include/ext/pointer.h  2025-09-06 09:57:11.945849025 +0200
@@ -40,6 +40,7 @@
 #pragma GCC system_header
 #endif

+#include <bits/c++config.h>
 #if _GLIBCXX_HOSTED
 #  include <iosfwd>
 #endif

Reply via email to