Issue |
134986
|
Summary |
[flang][preprocessor] Preprocessor splits a token while preserving column
|
Labels |
flang
|
Assignees |
|
Reporter |
Alf0nso
|
When preprocessing the following input file using
```
flang -E -o output.f90 input.F90
```
```fortran
! input.F90
subroutine sub(a, b, c, n)
print *, "HELLO "/&
&/" WORLD"
end subroutine sub
```
the file is preprocessed as
```fortran
subroutine sub(a, b, c, n)
print *, "HELLO "/ /" WORLD"
end subroutine sub
```
which is not valid Fortran input.
```
error: Could not parse output.f90
output.f90:2:24: error: expected end of statement
print *, "HELLO "/ /" WORLD"
^
```
For comparison, gfortran (`gfortran -cpp -E input.F90`), preserves the input lines (in this case the output is the same as the input).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs