[flang-commits] [flang] [llvm] [Flang][OpenMP][Runtime] Minor Flang runtime for OpenMP AMDGPU (PR #152631)

via flang-commits flang-commits at lists.llvm.org
Tue Aug 19 09:28:44 PDT 2025


================
@@ -204,8 +204,8 @@ void FORTRAN_PROCEDURE_NAME(getarg)(
 void FORTRAN_PROCEDURE_NAME(getlog)(char *arg, std::int64_t length) {
 #if _REENTRANT || _POSIX_C_SOURCE >= 199506L
   if (length >= 1 && getlogin_r(arg, length) == 0) {
-    auto loginLen{std::strlen(arg)};
-    std::memset(
+    auto loginLen{Fortran::runtime::strlen(arg)};
----------------
agozillon wrote:

I think I managed to get to the bottom of it, they reside outside of a namespace or in an anonymous namespace, so a using namespace Fortran is required. Should be addressed in the latest commit.

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


More information about the flang-commits mailing list