This is an archive of the discontinued LLVM Phabricator instance.

[flang] Refine checks for pointer initialization targets
ClosedPublic

Authored by klausler on Mar 31 2021, 9:21 AM.

Details

Summary

f18 was emitting a bogus error message about the lack of a TARGET
attribute when a pointer was initialized with a component of a
variable that was a legitimate TARGET.

Diff Detail

Event Timeline

klausler created this revision.Mar 31 2021, 9:21 AM
klausler requested review of this revision.Mar 31 2021, 9:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2021, 9:21 AM
PeteSteinfeld accepted this revision.Mar 31 2021, 10:07 AM

All builds, tests, and looks good.

flang/lib/Evaluate/check-expression.cpp
264

Should this call to GetUltimate() be to GetAssociationRoot()?

614

Should this be a call to GetAssociationRoot()?

This revision is now accepted and ready to land.Mar 31 2021, 10:07 AM
klausler added inline comments.Mar 31 2021, 10:36 AM
flang/lib/Evaluate/check-expression.cpp
264

Construct associations are handled explicitly in the one caller (above) where they matter (ca. line 185).

614

Construct associations are handled in the base class (invoked below, lines 625-626).

This revision was landed with ongoing or failed builds.Mar 31 2021, 11:32 AM
This revision was automatically updated to reflect the committed changes.