[flang] Rearrange alternatives in data statement values to put longer parse earlier.

Original-commit: flang-compiler/f18@867cefaafb
Reviewed-on: https://github.com/flang-compiler/f18/pull/48
Tree-same-pre-rewrite: false
This commit is contained in:
peter klausler 2018-04-09 09:57:49 -07:00
parent de180f4ed0
commit 3274977aa5
1 changed files with 1 additions and 1 deletions

View File

@ -1350,8 +1350,8 @@ TYPE_PARSER(construct<DataStmtRepeat>{}(intLiteralConstant) ||
// signed-int-literal-constant | signed-real-literal-constant |
// null-init | initial-data-target | structure-constructor
TYPE_PARSER(construct<DataStmtConstant>{}(Parser<StructureConstructor>{}) ||
construct<DataStmtConstant>{}(scalar(Parser<ConstantValue>{})) ||
construct<DataStmtConstant>{}(scalar(constantSubobject)) ||
construct<DataStmtConstant>{}(scalar(Parser<ConstantValue>{})) ||
construct<DataStmtConstant>{}(signedRealLiteralConstant) ||
construct<DataStmtConstant>{}(signedIntLiteralConstant) ||
extension(construct<DataStmtConstant>{}(