We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 270cdfc commit fc450bcCopy full SHA for fc450bc
flang/lib/Semantics/check-do-forall.cpp
@@ -1180,7 +1180,9 @@ void DoForallChecker::Leave(const parser::IoControlSpec &ioControlSpec) {
1180
void DoForallChecker::Leave(const parser::OutputImpliedDo &outputImpliedDo) {
1181
const auto &control{std::get<parser::IoImpliedDoControl>(outputImpliedDo.t)};
1182
const parser::Name &name{control.name.thing.thing};
1183
- context_.CheckIndexVarRedefine(name.source, *name.symbol);
+ if (name.symbol) {
1184
+ context_.CheckIndexVarRedefine(name.source, *name.symbol);
1185
+ }
1186
}
1187
1188
void DoForallChecker::Leave(const parser::StatVariable &statVariable) {
0 commit comments