[flang-commits] [PATCH] D90495: [flang] Add warning for FINAL pitfall

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Oct 30 13:32:19 PDT 2020


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.
klausler requested review of this revision.

Fortran's FINAL feature is sensitive to object rank.
When an object's rank excludes it from finalization, but
the type has FINAL subroutines for other ranks, emit
a warning.  This should be especially helpful in the
case of a scalar FINAL subroutine not being declared
(IMPURE) ELEMENTAL.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90495

Files:
  flang/include/flang/Semantics/symbol.h
  flang/lib/Semantics/check-declarations.cpp
  flang/lib/Semantics/symbol.cpp
  flang/test/Semantics/final02.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90495.302005.patch
Type: text/x-patch
Size: 6070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20201030/1a5639e7/attachment-0001.bin>


More information about the flang-commits mailing list