[flang] Catch attempts to do anything with statement functions other than call them
authorPeter Klausler <pklausler@nvidia.com>
Mon, 24 Oct 2022 23:59:55 +0000 (16:59 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 31 Oct 2022 00:54:22 +0000 (17:54 -0700)
commitbd28a0a51181ad33dc9030fb887d26cd6b238c1f
treec3554d66d87dc3750f6134e9b8678df743f4fd12
parentdbfa4a0aa561809db4376103278fa8e824d91a6c
[flang] Catch attempts to do anything with statement functions other than call them

A statement function in Fortran may be called, but it may not be the target
of a procedure pointer or passed as an actual argument.
flang/lib/Semantics/check-call.cpp
flang/lib/Semantics/pointer-assignment.cpp
flang/test/Semantics/assign03.f90
flang/test/Semantics/call02.f90