[flang-commits] [PATCH] D88691: [flang] Semantic checks for bad usage of whole assumed-size arrays
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Oct 1 12:10:08 PDT 2020
klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
klausler requested review of this revision.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D88691
Files:
flang/include/flang/Semantics/expression.h
flang/lib/Semantics/assignment.cpp
flang/lib/Semantics/check-io.cpp
flang/lib/Semantics/expression.cpp
flang/test/Semantics/assign04.f90
flang/test/Semantics/io03.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88691.295643.patch
Type: text/x-patch
Size: 8265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20201001/eb14444c/attachment.bin>
More information about the flang-commits
mailing list