[flang-commits] [PATCH] D90492: [flang] Better error messages & more cases caught for bad forward refs

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Oct 30 12:52:17 PDT 2020


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

Subclause 10.1.12 in F'2018 prohibits forward references from
a specification expression to an object declared later in the
same specification part.  Catch this error better and emit
specific error messages about the violation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90492

Files:
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/resolve97.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90492.301994.patch
Type: text/x-patch
Size: 10500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20201030/edb4d7a3/attachment.bin>


More information about the flang-commits mailing list