[flang-commits] [PATCH] D135209: [flang] Ignore errors on declarations in interfaces that "have no effect"

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Oct 4 14:59:52 PDT 2022


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D135209

Files:
  flang/lib/Semantics/check-declarations.cpp
  flang/test/Semantics/call10.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135209.465182.patch
Type: text/x-patch
Size: 4281 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221004/38a330a6/attachment.bin>


More information about the flang-commits mailing list