Skip to content
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

[flang] compiler is not able to scan the continuation line in presence of preprocessed output #116578

Closed
shivaramaarao opened this issue Nov 18, 2024 · 2 comments

Comments

@shivaramaarao
Copy link

shivaramaarao commented Nov 18, 2024

The following file is generated after preprocessing the source code.
test2.f90:
integer, allocatable :: array(:)
integer, allocatable :: source(:)
allocate (array,&
#76 "test2.F90"
& source=source)
end program

flang compiler fails to compile above file with following error.
flang test2.f90
error: Could not scan test2.f90
test2.F90:76:38: error: Unmatched ')'
& source=source)

if the preprocessed line is moved above allocate statement, the test works fine.

@github-actions github-actions bot added the flang Flang issues not falling into any other category label Nov 18, 2024
@EugeneZelenko EugeneZelenko added flang:frontend and removed flang Flang issues not falling into any other category labels Nov 18, 2024
@llvmbot
Copy link
Member

llvmbot commented Nov 18, 2024

@llvm/issue-subscribers-flang-frontend

Author: None (shivaramaarao)

The following file is generated after preprocessing the source code. test2.f90: integer, allocatable :: array(:) integer, allocatable :: source(:) allocate (array,& #76 "test2.F90" & source=source) end program

flang compiler fails to compile above file with following error.
flang test2.f90
error: Could not scan test2.f90
test2.F90:76:38: error: Unmatched ')'
& source=source)

if the preprocessed line is moved above allocate statement, the test works fine.

@klausler
Copy link
Contributor

Works with current top of llvm-project/main tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants