This is an archive of the discontinued LLVM Phabricator instance.

[flang] Deal with negative character lengths in semantics
ClosedPublic

Authored by klausler on Nov 16 2021, 1:50 PM.

Details

Summary

Fortran defines LEN(X) = 0 after CHARACTER(LEN=-1)::X so
apply MAX(0, ...) to character length expressions.

Diff Detail

Event Timeline

klausler created this revision.Nov 16 2021, 1:50 PM
klausler requested review of this revision.Nov 16 2021, 1:50 PM
jeanPerier accepted this revision.Nov 17 2021, 12:45 AM
This revision is now accepted and ready to land.Nov 17 2021, 12:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2021, 9:49 AM