[all-commits] [llvm/llvm-project] 94d47e: [flang] Catch nasty order-of-declarations case (#7...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Nov 13 16:24:56 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94d47e6325fbbccc5adcadd41d4e0ea8ce126fec
      https://github.com/llvm/llvm-project/commit/94d47e6325fbbccc5adcadd41d4e0ea8ce126fec
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2023-11-13 (Mon, 13 Nov 2023)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/declarations07.f90

  Log Message:
  -----------
  [flang] Catch nasty order-of-declarations case (#71881)

It is possible to declare the rank of an object after that object has
been used in the same specification part in a specification function
reference whose result or generic resolution may well have depended on
the object being apparently a scalar.

Catch this case, and emit a warning -- not an error, yet, due to fear of
false positives.

See the new test for examples.




More information about the All-commits mailing list