Actual argument expressions must be evaluated before the invocation
of the sequence of per-element calls of an impure elemental subprogram.
Otherwise, the side effects of the calls may affect the input for
the consequent elements.
The proposed changes are described by Jean in D154174.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for this, LGTM
flang/test/Lower/HLFIR/elemental-user-procedure-ref.f90 | ||
---|---|---|
172 | Nit: if I understand correctly, the hlfir.associate should be operating on VAL_5 (the elemental expr), not on a new value. |
flang/test/Lower/HLFIR/elemental-user-procedure-ref.f90 | ||
---|---|---|
172 | You are right. Thanks for the catch! I will fix it before merging. |
Nit: if I understand correctly, the hlfir.associate should be operating on VAL_5 (the elemental expr), not on a new value.