This is an archive of the discontinued LLVM Phabricator instance.

[flang] Use definability tests for better PURE constraint checking
ClosedPublic

Authored by klausler on Apr 1 2023, 2:22 PM.

Details

Summary

Many semantic checks for constraints related to PURE subprograms
can be implemented in terms of Semantics' "definable.h" utilities,
slightly expanded. Replace some particular PURE constraint
checks with calls to WhyNotDefinable(), except for cases that
had better specific error messages, and start checking some
missing constraints with DEALLOCATE statements and local
variable declarations.

Diff Detail

Event Timeline

klausler created this revision.Apr 1 2023, 2:22 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Apr 1 2023, 2:22 PM
This revision is now accepted and ready to land.Apr 3 2023, 12:05 AM