As Fortran 2018 states, in each where-assignment-stmt, the mask-expr and
the variable being defined shall be arrays of the same shape. The
previous check does not consider checking if it is an array.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/lib/Semantics/assignment.cpp | ||
---|---|---|
223 | This message is correct but it might be more clear to say that the variable and mask must not be scalars. |
Comment Actions
Change the semantic info into "The mask or variable must not be scalar" according to @klausler 's comments.
This message is correct but it might be more clear to say that the variable and mask must not be scalars.