Open certik opened 2 years ago
FYI a potential additional complication is where implicit none
is absent. For example this is valid code
program main
logical T
parameter(epsilon=1.0E-6, PI=3.141593, T=.true.)
print*, epsilon, pi, t
end program main
We just implemented implicit typing, so we should have that feature. I think we have almost everything by now, we just have to set the appropriate flag at the ASR level for the variable (or declare it if it is implicitly typed), I think this is quite easy to fix.
Original issue: https://gitlab.com/lfortran/lfortran/-/issues/510
Currently
parameter
statements like the following:Have no valid ASR representation.
Essentially this is a bug on multiple levels, as this parameter is not the attribute at all; but the parameter statement defined in the draft 2018 standard as: