[flang-commits] [flang] [flang] Fix continued literals incorrect padding with -ffixed-line-length=none (PR #225051)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Tue Sep 29 11:57:52 PDT 2026


================
@@ -1204,8 +1206,9 @@ void Prescanner::Hollerith(
 // In fixed form, source card images must be processed as if they were at
 // least 72 columns wide, at least in character literal contexts.
----------------
eugeneepshteyn wrote:

Nit: this comment predates the change. It already said 72 even though the padding goes to whatever the limit is (e.g. 132 with `-ffixed-line-length=132`), and now it also doesn't cover the no-limit case, where nothing is padded. Maybe something like:

```suggestion
// In fixed form with a column limit, source card images must be processed as
// if they were at least that many columns wide, at least in character literal
// contexts. With no limit (-ffixed-line-length=none), no padding is done,
// which matches gfortran.
```


https://github.com/llvm/llvm-project/pull/225051


More information about the flang-commits mailing list