In my previous implementation of the semantic checks for ASSOCIATED(), I
had neglected to check the TARGET= argument for objects to ensure that
it has either the POINTER or TARGET attributes.
I added an implementation and a test.
Paths
| Differential D89717
[flang] Another validity of the TARGET= argument of ASSOCIATED() for objects ClosedPublic Authored by PeteSteinfeld on Oct 19 2020, 11:06 AM.
Details Summary In my previous implementation of the semantic checks for ASSOCIATED(), I I added an implementation and a test.
Diff Detail
Event TimelineComment Actions Why is this a fatal error, rather than a warning? If the TARGET= argument lacks both POINTER and TARGET attributes, the result will always be false, and we can warn about that. Comment Actions
This same logic applies to all invalid TARGET= arguments. GNU, pgf90, IBM, Intel, and NAG all consider this an error. I think that we should. too. This revision is now accepted and ready to land.Oct 21 2020, 9:52 AM Closed by commit rG6b66f1cd9ba4: [flang] Another validity of the TARGET= argument of ASSOCIATED() for objects (authored by PeteSteinfeld). · Explain WhyOct 21 2020, 10:20 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 299738 flang/lib/Evaluate/intrinsics.cpp
flang/test/Semantics/associated.f90
|