[flang-commits] [flang] [flang][OpenMP] Skip invalid conditional compilation sentinels (PR #126282)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Wed Feb 12 03:02:30 PST 2025
================
@@ -1432,6 +1432,21 @@ Prescanner::IsFixedFormCompilerDirectiveLine(const char *start) const {
}
*sp++ = ToLowerCaseLetter(*p);
}
+ // A fixed form OpenMP conditional compilation sentinel must satisfy the
+ // following criteria, for initial lines:
+ // - Columns 3 through 5 must have only white space or numbers.
+ // - Column 6 must be space or zero.
+ if (column == 3 && sentinel[0] == '$') {
----------------
kiranchandramohan wrote:
Is something like `c$1x` handled?
Should we check if it is column 3, 4, 5 as well?
https://github.com/llvm/llvm-project/pull/126282
More information about the flang-commits
mailing list