Page MenuHomePhabricator

[flang] Fix CHARACTER length folding problem

Authored by klausler on Jul 7 2020, 3:34 PM.



Do not rewrite LEN(x) or x%len to the expression that specifies
the length of x when that length is not a constant expression.
Its value may have changed since the value of the expression was
first captured in the definition of the object.

Diff Detail

Event Timeline

klausler created this revision.Jul 7 2020, 3:34 PM
Herald added a project: Restricted Project. · View Herald Transcript
tskeith accepted this revision.Jul 7 2020, 3:41 PM
This revision is now accepted and ready to land.Jul 7 2020, 3:41 PM
sscalpone accepted this revision.Jul 7 2020, 3:52 PM
This revision was automatically updated to reflect the committed changes.