[flang] Upgrade warning to error in case of PURE procedure
authorpeter klausler <pklausler@nvidia.com>
Tue, 14 Sep 2021 19:44:57 +0000 (12:44 -0700)
committerpeter klausler <pklausler@nvidia.com>
Fri, 17 Sep 2021 17:13:35 +0000 (10:13 -0700)
commit20afd38651cc37961a7353771fd3f34aec5d2a34
tree53df9324009939f9fb6a985e80b9ec7bad1794e3
parent36aac53b36983c5ae8b7dcb0519c34e8c41dc4e5
[flang] Upgrade warning to error in case of PURE procedure

A procedure actual argument to a PURE procedure should be required
to have an explicit interface.  Implicit-interface actual arguments
to non-PURE procedures remain a warning.

Differential Revision: https://reviews.llvm.org/D109926
flang/lib/Semantics/check-call.cpp
flang/test/Semantics/call12.f90