[flang] Disallow INTENT attribute on procedure dummy arguments
authorPeter Steinfeld <psteinfeld@nvidia.com>
Fri, 15 Jan 2021 15:04:20 +0000 (07:04 -0800)
committerPeter Steinfeld <psteinfeld@nvidia.com>
Fri, 15 Jan 2021 16:53:43 +0000 (08:53 -0800)
commit1e1a011b09d0e6e9ff62b37721906485c386708c
treede6d4e6df1708d96e2538dc2f5cf816e59d20014
parentbe69e66b1cd826f499566e1c3dadbf04e872baa0
[flang] Disallow INTENT attribute on procedure dummy arguments

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.

Differential Revision: https://reviews.llvm.org/D94781
flang/lib/Semantics/check-declarations.cpp
flang/test/Semantics/assign03.f90
flang/test/Semantics/call09.f90
flang/test/Semantics/separate-mp02.f90