diff --git a/flang/include/flang/Parser/parse-tree.h b/flang/include/flang/Parser/parse-tree.h index cb4bb59bf312c7..408a474cfa8a5d 100644 --- a/flang/include/flang/Parser/parse-tree.h +++ b/flang/include/flang/Parser/parse-tree.h @@ -2259,15 +2259,18 @@ struct LoopControl { }; // R1121 label-do-stmt -> [do-construct-name :] DO label [loop-control] +// A label-do-stmt with a do-construct-name is parsed as a non-label-do-stmt. struct LabelDoStmt { TUPLE_CLASS_BOILERPLATE(LabelDoStmt); - std::tuple, Label, std::optional> t; + std::tuple> t; }; // R1122 nonlabel-do-stmt -> [do-construct-name :] DO [loop-control] struct NonLabelDoStmt { TUPLE_CLASS_BOILERPLATE(NonLabelDoStmt); - std::tuple, std::optional> t; + std::tuple, std::optional