Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Improve error message output (llvm#102324)
When a local character variable with non-constant length has an initializer, it's an error in a couple of ways (SAVE variable with unknown size, static initializer that isn't constant due to conversion to an unknown length). The error that f18 reports is the latter, but the message contains a formatted representation of the initialization expression that exposes a non-Fortran %SET_LENGTH() operation. Print the original expression in the message instead.
- Loading branch information