Skip to content

[flang] Linker for non-constant accesses to kind arrays (integer_kind, logical_kind, real_kind) #89403

Closed
@mjklemm

Description

@mjklemm

When compiling a code like this:

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)

Metadata

Metadata

Assignees

Labels

cmakeBuild system in general and CMake in particularflangFlang issues not falling into any other category

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions