[flang] Emit error when a positional actual argument follows an argument with a keyword
authorPeter Klausler <pklausler@nvidia.com>
Wed, 15 Mar 2023 00:11:48 +0000 (17:11 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 27 Mar 2023 22:24:14 +0000 (15:24 -0700)
commite3b6b9299c9691c7dcde0f80b8af679a50540979
tree5b57ac59b36f1763cdc60607006763c9200e1a4f
parent982614fa47e87ba6760907588f5021e1b6d5911c
[flang] Emit error when a positional actual argument follows an argument with a keyword

A positional (non-keyword) actual argument or alternate return label is not
allowed to follow an actual argument with a keyword.

Differential Revision: https://reviews.llvm.org/D146575
flang/lib/Evaluate/intrinsics.cpp
flang/lib/Semantics/check-call.cpp
flang/test/Evaluate/fold-ishftc.f90
flang/test/Semantics/collectives01.f90
flang/test/Semantics/collectives02.f90
flang/test/Semantics/collectives03.f90
flang/test/Semantics/collectives04.f90
flang/test/Semantics/lcobound.f90
flang/test/Semantics/ucobound.f90