-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
empty array not really empty? #3850
Labels
bug
Something isn't working
Comments
I think it is a bug in our ASR pass % cat examples/expr2.f90
program emptytest1
implicit none
real :: empty(1) = [5]
print *,':',empty,':'
end program emptytest1
% gfortran examples/expr2.f90
% ./a.out
: 5.00000000 :
% lfortran examples/expr2.f90
: 5.00000000e+00
: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This program prints two colons with nothing between them with gfortran, ifort, ifx and g95. So does AOCC flang
after a compile-time warning 'Array declared with zero size', but lfortran prints the 3-line output below the program.
That looks like a run-time bug.
The text was updated successfully, but these errors were encountered: