[Openmp-commits] [flang] [llvm] [openmp] [Flang-RT] Fix GCC 15.1 Fortran Runtime libstdc++ Undefined Symbols (PR #157385)

Michael Kruse via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 24 05:06:42 PDT 2025


================
@@ -24,6 +24,9 @@ using cuda::std::variant_size_v;
 using cuda::std::visit;
 } // namespace std
 #else // !RT_USE_LIBCUDACXX
+#include <initializer_list>
----------------
Meinersbur wrote:

```c
#ifdef _GLIBCXX_THROW_OR_ABORT
#undef _GLIBCXX_THROW_OR_ABORT
#endif
```

I would have preferred if we could ensure that our `_GLIBCXX_THROW_OR_ABORT` is always the first, so that which _GLIBCXX_THROW_OR_ABORT is active does not depend on `#include` order.

Be sure to document this stuff.

https://github.com/llvm/llvm-project/pull/157385


More information about the Openmp-commits mailing list