[flang-commits] [PATCH] D153385: [flang] Rework name resolution of Cray pointer declarations

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Jun 21 06:12:00 PDT 2023


klausler added inline comments.


================
Comment at: flang/test/Semantics/resolve61.f90:73
   end type
-  !ERROR: 't' is not a variable
+  !ERROR: 't' is already declared in this scoping unit
   pointer(a, t)
----------------
PeteSteinfeld wrote:
> This error used to have a more accurate message.  Now we seem to be treating the appearance of `t` in a `pointer` statement as a redeclaration.  This seems OK to me, but I just wanted to make sure that this is what you intended.
It's good, and it's the right message for situations where a name gets declared more than once in a scope and is not one of the two cases where Fortran allows it.


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

https://reviews.llvm.org/D153385



More information about the flang-commits mailing list