This is an archive of the discontinued LLVM Phabricator instance.

[flang] Don't compute pointer component procedure characteristics when not needed
ClosedPublic

Authored by klausler on Aug 3 2022, 12:56 PM.

Details

Summary

When a procedure pointer component has an interface that is a forward
reference to a procedure, syntax errors can be emitted if there is
a structure constructor that tries to initialize that component,
since its characteristics are not yet known; however, when the
initializer is a bare NULL(with no mold), those characteristics
don't matter. Make the characterization of the procedure pointer
component take place only when needed.

Diff Detail

Event Timeline

klausler created this revision.Aug 3 2022, 12:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2022, 12:56 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 3 2022, 12:56 PM
vdonaldson accepted this revision.Aug 3 2022, 4:03 PM
This revision is now accepted and ready to land.Aug 3 2022, 4:03 PM