[flang-commits] [flang] [flang] Accept C-style comments in label fields (PR #207012)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Tue Aug 4 05:22:30 PDT 2026
================
@@ -1366,12 +1408,27 @@ const char *Prescanner::FixedFormContinuationLine(bool atNewline) {
}
tabInCurrentLine_ = false;
char col1{*nextLine_};
+ const char *afterWhiteSpace{SkipWhiteSpace(nextLine_)};
+ const char *afterCComment{
+ IsCComment(afterWhiteSpace) ? SkipCComment(afterWhiteSpace) : nullptr};
----------------
eugeneepshteyn wrote:
I'm wondering if we should just document that starting a C comment on column 6 in fixed mode is a bad idea and is not supported. We don't want to break basic Fortran functionality over (admittedly useful) extension.
How do other compilers cope with C comment that starts at column 6?
https://github.com/llvm/llvm-project/pull/207012
More information about the flang-commits
mailing list