[PATCH] D79798: [flang] Constraint checks C751 to C760

Tim Keith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 12 15:37:38 PDT 2020


tskeith added inline comments.


================
Comment at: flang/test/Semantics/resolve33.f90:43
     !ERROR: Must be a constant value
+    !ERROR: Invalid specification expression: derived type component not allowed to reference variable 'l'
     character(kind=k, len=l) :: d3
----------------
klausler wrote:
> This error seems spurious to me.  We know that `l` (lower-case letter ell) is a type parameter.
Yes, the "Must be a constant value" error too. The real errors are the ones above: "No definition found for type parameter".

Setting and checking the `Error` flag on the symbols for `k` and `l` might be a way to avoid these.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79798/new/

https://reviews.llvm.org/D79798





More information about the llvm-commits mailing list