Page MenuHomePhabricator

[flang] Semantic checks for bad usage of whole assumed-size arrays
ClosedPublic

Authored by klausler on Oct 1 2020, 12:10 PM.

Details

Summary

The semantics pass currently checks for several constraints
that apply to the use of whole assumed-size arrays in various
contexts, but C1002 wasn't really implemented. This patch
implements C1002 by disallowing the use of whole assumed-size
arrays in expressions and variables unless specifically
allowed by the context. This centralizes the error reporting,
which has been improved with a link to the array's declaration.

Diff Detail

Event Timeline

klausler created this revision.Oct 1 2020, 12:10 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Oct 1 2020, 12:10 PM
jeanPerier accepted this revision.Oct 7 2020, 10:06 AM

Looks good to me.

This revision is now accepted and ready to land.Oct 7 2020, 10:06 AM