-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Blank characters preceding initial left parentheses or in-between of format specification #4040
Comments
I'll look into the issue. |
gxyd
added a commit
to gxyd/lfortran
that referenced
this issue
May 20, 2024
gxyd
added a commit
that referenced
this issue
May 20, 2024
gxyd
added a commit
to gxyd/lfortran
that referenced
this issue
May 22, 2024
Blank characters may precede the initial left parenthesis of the format specification and additional blank characters may appear at any point within the format specification, with no effect on the interpretation of the format specification. e.g.; `(I 1 2)` is same as `(I12)` for format specification and are both valid. Earlier, we used to raise tokenizer error because of no support for it issue was initially raised in lfortran#4040
gxyd
added a commit
that referenced
this issue
May 25, 2024
Blank characters may precede the initial left parenthesis of the format specification and additional blank characters may appear at any point within the format specification, with no effect on the interpretation of the format specification. e.g.; `(I 1 2)` is same as `(I12)` for format specification and are both valid. Earlier, we used to raise tokenizer error because of no support for it issue was initially raised in #4040
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
Blank characters can precede the initial left parentheses of format specification. E.g.
2 (2I3, I5)
is a valid format specification and so is2 (2I 3, I5)
, and is to be interpreted the same way as2(2I3, I5)
. Below is a screenshot from J3 SD-007r1.pdf (Draft Fortran 2023), pg 288, section 13.2:Steps to reproduce
For the below Fortran program:
on it's execution with LFortran, we get an output an output as below (without any error, but informing of unsupported format " "):
while on execution of the above program with GFortran we get the below output:
while if we try with space between the format specification itself:
LFortran raises a tokenizer error:
which seems to be the correct output.
System information
macbook air m1
The text was updated successfully, but these errors were encountered: