[all-commits] [llvm/llvm-project] e2eabb: [flang] Ignore errors on declarations in interface...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Oct 6 11:29:02 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e2eabb7ed5e90ddf397bc3c41ec3fbab51a403c1
https://github.com/llvm/llvm-project/commit/e2eabb7ed5e90ddf397bc3c41ec3fbab51a403c1
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-10-06 (Thu, 06 Oct 2022)
Changed paths:
M flang/lib/Semantics/check-declarations.cpp
M flang/test/Semantics/call10.f90
Log Message:
-----------
[flang] Ignore errors on declarations in interfaces that "have no effect"
Fortran strangely allows declarations to appear in procedure interface
definitions when those declarations do not contribute anything to the
characteristics of the procedure; in particular, one may declare local
variables that are neither dummy variables nor function results.
Such declarations "have no effect" on the semantics of the program,
and that should include semantic error checking for things like
special restrictions on PURE procedures.
Differential Revision: https://reviews.llvm.org/D135209
More information about the All-commits
mailing list