Issue 89403
Summary [flang] Linker for non-constant accesses to kind arrays (integer_kind, logical_kind, real_kind)
Labels flang
Assignees mjklemm
Reporter mjklemm
    When compiling a code like this:

```Fortran
program kinds_issue
 use, intrinsic :: iso_fortran_env, only: integer_kinds
   implicit none
   integer :: k
   k=1
   write (*,'(I0)') integer_kinds(k)
end program
```

Results in an error like this:

```
FIRModule:(.text+0x4e): undefined reference to `_QMiso_fortran_envECinteger_kinds'
flang-new: error: linker command failed with exit code 1 (use -v to see invocation)
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to