This is an archive of the discontinued LLVM Phabricator instance.

[flang] Include source information in an invalid file-unit-number message
ClosedPublic

Authored by klausler on Nov 12 2020, 12:00 PM.

Details

Summary

An io-unit that is an internal-file-variable is syntactically identical
to a file-unit-number expression that is a variable reference. An
ambiguous unit is initially parsed as an internal-file-variable. If
semantic analysis determines that the unit is not of character type,
it is rewritten as an internal-file-variable. This modification must
retain source coordinate information.

Diff Detail

Event Timeline

klausler created this revision.Nov 12 2020, 12:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 12 2020, 12:00 PM
klausler requested review of this revision.Nov 12 2020, 12:00 PM
tskeith accepted this revision.Nov 12 2020, 1:07 PM
This revision is now accepted and ready to land.Nov 12 2020, 1:07 PM