Bug: ASR: Type mismatch when using kind(0.d0)
When kind(0.d0)
is used, the ASR
includes the (overloaded) kind()
with logical
parameter. As we are passing 0.d0
(which seems to be of type real
), the dkind()
with the real(8)
parameter should have been included.
I guess, this is probably because of the following at https://github.com/lfortran/lfortran/blob/main/src/runtime/pure/lfortran_intrinsic_kind.f90:
! Does not work yet:
!
!interface kind
! module procedure skind, dkind, lkind
!end interface
More details (example source code, its ASR
, etc.) at comment and comment
Edited by Ubaid Shaikh