[flang-commits] [flang] [flang] Accept C-style comments in label fields (PR #207012)
Leandro Lupori via flang-commits
flang-commits at lists.llvm.org
Tue Sep 15 13:45:58 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};
----------------
luporl wrote:
Fixed. Now C-style comments starting before column 6 in continuation lines are ignored if preprocessing is disabled. When preprocessing is enabled and an unterminated comment is detected `SkipCComment` isn't called again in this function.
https://github.com/llvm/llvm-project/pull/207012
More information about the flang-commits
mailing list