[flang-commits] [flang] [flang] Handle substring in data statement constant (PR #120130)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Mon Dec 16 12:05:36 PST 2024
================
@@ -930,7 +930,9 @@ TYPE_PARSER(construct<DataStmtRepeat>(intLiteralConstant) ||
// So we parse literal constants, designator, null-init, and
// structure-constructor, so that semantics can figure things out later
// with the symbol table.
-TYPE_PARSER(sourced(first(construct<DataStmtConstant>(literalConstant),
+TYPE_PARSER(sourced(first(
+ construct<DataStmtConstant>(indirect(charLiteralConstantSubstring)),
----------------
eugeneepshteyn wrote:
Question: `indirect` here is just to ensure that `charLiteralConstantSubstring` is not null?
https://github.com/llvm/llvm-project/pull/120130
More information about the flang-commits
mailing list