This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix constraint check on CLASS() entities
ClosedPublic

Authored by klausler on Jul 17 2023, 10:16 AM.

Details

Summary

Entities declared with CLASS() must be dummy arguments, allocatables,
or pointers. This constraint check is currently correct for objects
but not for procedures, and getting it right needs to avoid being
confused between pointers to procedures and pointers returned by
procedures.

Diff Detail

Event Timeline

klausler created this revision.Jul 17 2023, 10:16 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jul 17 2023, 10:16 AM
PeteSteinfeld accepted this revision.Jul 17 2023, 11:38 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jul 17 2023, 11:38 AM
This revision was landed with ongoing or failed builds.Jul 17 2023, 12:19 PM
This revision was automatically updated to reflect the committed changes.