This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch more bad TARGET= arguments to ASSOCIATED()
ClosedPublic

Authored by klausler on Aug 7 2023, 3:09 PM.

Details

Summary

The TARGET= argument to the intrinsic function ASSOCIATED() must be
a valid target for the POINTER= argument, but we are missing some
cases, such as parenthesized expressions. Add more checking, and
restructure the logic a bit to make the case analysis structure
more clear.

Fixes llvm-test-suite/Fortran/gfortran/regression/associated_target_1.f90.

Diff Detail

Event Timeline

klausler created this revision.Aug 7 2023, 3:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 3:09 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 7 2023, 3:09 PM
vdonaldson accepted this revision.Aug 7 2023, 4:51 PM
This revision is now accepted and ready to land.Aug 7 2023, 4:51 PM
This revision was automatically updated to reflect the committed changes.