This is an archive of the discontinued LLVM Phabricator instance.

[flang] Stricter scrutiny of deferred type parameters (C702)
ClosedPublic

Authored by klausler on Oct 28 2022, 11:45 AM.

Details

Summary

Semantics checks C702, which disallows deferred type parameters for
any entity that is neither an allocatable nor a pointer, only during
name resolution of type declaration statements. This check needs to
be broader, since Fortran entities can have their types specified in
other ways. Rewrite the check and move it to the general declaration
checking pass.

Diff Detail

Event Timeline

klausler created this revision.Oct 28 2022, 11:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 28 2022, 11:45 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Oct 28 2022, 11:45 AM
PeteSteinfeld accepted this revision.Oct 28 2022, 11:57 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Oct 28 2022, 11:57 AM