Issue 110261
Summary [flang] Semantic error while compiling a fixed form file
Labels flang
Assignees
Reporter inaki-amatria
    - `flang-new` version is: `flang-new version 20.0.0git (https://github.com/llvm/llvm-project.git 2b84ef06ac55ac8de3c210d059ec3a3c96666a90)`
- Reduced test case:
```f90
! foo.f
      INTEGER FD
 WRITE(FD,"(I5,I5,"//
     * "F11.6,F11.6,F11.6,"//
     *                        "F15.7,"//
 *                        "F11.6,F11.6"//
     * "F15.7,F15.7)")
     * IST,JST,X12D,X12A,DX12,COUPL*TOEV,DX1,DX2,
     * EL1*TOEV,EL2*TOEV
      END
```
- `flang-new` invocation is: `flang-new foo.f`
- Expected behavior is: The code compiles successfully.
- Actual behavior: Compilation aborts with the following error:
```
error: Semantic errors in foo.f
foo.f:3:31: error: Expected ',' or ')' in format _expression_
 WRITE(FD,"(I5,I5,"//
                                ^
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to