This is an archive of the discontinued LLVM Phabricator instance.

[flang] Better error messages & more cases caught for bad forward refs
ClosedPublic

Authored by klausler on Oct 30 2020, 12:52 PM.

Details

Summary

Subclause 10.1.12 in F'2018 prohibits forward references from
a specification expression to an object declared later in the
same specification part. Catch this error better and emit
specific error messages about the violation.

Diff Detail

Event Timeline

klausler created this revision.Oct 30 2020, 12:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2020, 12:52 PM
klausler requested review of this revision.Oct 30 2020, 12:52 PM
tskeith accepted this revision.Oct 30 2020, 4:23 PM
This revision is now accepted and ready to land.Oct 30 2020, 4:23 PM