-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Automatic reallocation failed #5739
Comments
As #5707 seemed to require the absence of a
Same output as before. |
We do not support implicit allocation by default. You can do so using the (base) saurabh-kumar@Awadh:~/Projects/System/lfortran$ lfortran test.f90 --realloc-lhs
1
2
3
4
5
6 |
I tried using |
@harperjf yes, I think we have some ongoing work to fix printing. |
the printing issue should be fixed by #5039. |
Having been misled by assuming that the
but I may have missed some, or included some that would allow a non-conforming program. |
Yes, that's a bug to not include all standard conforming options. Here are the current options: https://github.com/lfortran/lfortran/blob/main/src/bin/lfortran.cpp#L2336, the implicit ones are already enabled, so just the |
In this program the second assignment to
x
requiresx
to be reallocated because its shape has changed.Lfortran 0.42.0 output:
Four other compilers gave this output, which IMHO is correct:
The text was updated successfully, but these errors were encountered: