| Issue |
183581
|
| Summary |
flang prints wrong/confusing error messages for FORMAT statement.
|
| Labels |
flang
|
| Assignees |
|
| Reporter |
laoshd
|
This simple test shows the issue:
```
% cat io17_r.f90
write(*, '(2SS, F10.3)') 0.5
2003 format(2SS, F10.3)
end
```
The expected error message is "Repeat specifier before 'SS' edit descriptor". But got:
```
% flang io17_r.f90
error: Could not parse io17_r.f90
./io17_r.f90:2:14: error: expected ':'
2003 format(2SS, F10.3)
^
./io17_r.f90:2:6: in the context: pointer assignment statement
2003 format(2SS, F10.3)
^
./io17_r.f90:2:1: in the context: execution part construct
2003 format(2SS, F10.3)
^
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs