This is an archive of the discontinued LLVM Phabricator instance.

[flang] Accept FINAL forward reference to separate module procedure
ClosedPublic

Authored by klausler on Aug 28 2023, 4:30 PM.

Details

Summary

When one of a derived type's FINAL procedures is in a submodule,
its separate module procedure interface must necessarily be a
forward reference from the FINAL statement, as its interface
could not appear before the definition of the type. The implementation
of FINAL procedure name resolution doesn't work for forward references;
replace it.

Diff Detail

Event Timeline

klausler created this revision.Aug 28 2023, 4:30 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 28 2023, 4:30 PM
PeteSteinfeld accepted this revision.Aug 29 2023, 1:20 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Aug 29 2023, 1:20 PM