This is an archive of the discontinued LLVM Phabricator instance.

[flang][OpenMP] Allow default(none) to access variables with PARAMETER attribute
ClosedPublic

Authored by NimishMishra on Jul 10 2022, 7:05 AM.

Details

Summary

This patch fixes https://github.com/flang-compiler/f18-llvm-project/issues/1351. Concretely, data-sharing attributes on PARAMETER data used in a block with DEFAULT(NONE) should be ignored.

Diff Detail

Event Timeline

NimishMishra created this revision.Jul 10 2022, 7:05 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 10 2022, 7:05 AM
NimishMishra requested review of this revision.Jul 10 2022, 7:05 AM
kiranchandramohan added inline comments.
flang/lib/Semantics/resolve-directives.cpp
1486

Did you notice any issue with adding this check to the outer if?

NimishMishra added inline comments.Jul 10 2022, 7:29 AM
flang/lib/Semantics/resolve-directives.cpp
1478

@kiranchandramohan If you meant if we observe errors when adding the check here, then no.

flang/lib/Semantics/resolve-directives.cpp
1478

Since OpenMP-specific symbol information is not expected in the symbol for parameter constants, this might be a better position for that check.

Shifted position of the check

This revision is now accepted and ready to land.Jul 11 2022, 3:28 AM