-
Notifications
You must be signed in to change notification settings - Fork 14.5k
[flang] Disable Fortran free form line continuation in non-source lin… #94663
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
Conversation
@llvm/pr-subscribers-flang-parser Author: Peter Klausler (klausler) Changes…e produced by keyword macro replacement When later initial keyword macro replacement will yield a line that is not Fortran source, don't interpret "&" as a Fortran source line continuation marker during tokenization of the line. Fixes #82579. Full diff: https://github.com/llvm/llvm-project/pull/94663.diff 5 Files Affected:
|
I'm testing this patch
However, I'm hitting a very strange issue. When I do
The error went crazy. actually there is a line error: Could not parse macro_omp.f90 However, if I extract preprocessed file
and then I also noticed the compiler seems behavior non-deterministicly when running |
…e produced by keyword macro replacement When later initial keyword macro replacement will yield a line that is not Fortran source, don't interpret "&" as a Fortran source line continuation marker during tokenization of the line. Fixes llvm#82579.
Patch has been updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well fixed my reported issue.
Does that mean that you still have other bugs? |
@ye-luo ping -- do you have other related bugs that should be fixed before I merge this? |
Everything looks good on my side from minimal reproducers to full applications. |
…e produced by keyword macro replacement
When later initial keyword macro replacement will yield a line that is not Fortran source, don't interpret "&" as a Fortran source line continuation marker during tokenization of the line.
Fixes #82579.