This is an archive of the discontinued LLVM Phabricator instance.

[flang] Disallow INTENT attribute on procedure dummy arguments
ClosedPublic

Authored by PeteSteinfeld on Jan 15 2021, 7:06 AM.

Details

Summary

C843 states that "An entity with the INTENT attribute shall be a dummy
data object or a dummy procedure pointer." This change enforces that
and fixes some tests that erroneously violated this rule.

Diff Detail

Event Timeline

PeteSteinfeld requested review of this revision.Jan 15 2021, 7:06 AM
PeteSteinfeld created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 15 2021, 7:06 AM
PeteSteinfeld added a project: Restricted Project.Jan 15 2021, 7:21 AM
tskeith accepted this revision.Jan 15 2021, 7:52 AM
tskeith added inline comments.
flang/lib/Semantics/check-declarations.cpp
635

c843 -> C843 would be consistent with other references to constraints.

This revision is now accepted and ready to land.Jan 15 2021, 7:52 AM
PeteSteinfeld added inline comments.Jan 15 2021, 7:56 AM
flang/lib/Semantics/check-declarations.cpp
635

Oops. I'll fix it.