HomePhabricator

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

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

Description

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

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.

Differential revision: https://reviews.llvm.org/D88691

Details

Committed
klauslerOct 7 2020, 2:42 PM
Differential Revision
D88691: [flang] Semantic checks for bad usage of whole assumed-size arrays
Parents
rG940d7aaea958: Port StripGCRelocates pass to NPM
Branches
Unknown
Tags
Unknown