[all-commits] [llvm/llvm-project] cb1b84: [flang] Improve error reporting for procedures det...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Apr 22 14:28:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb1b846eda2b18955cad28742350e4a73f166c07
      https://github.com/llvm/llvm-project/commit/cb1b846eda2b18955cad28742350e4a73f166c07
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-04-22 (Mon, 22 Apr 2024)

  Changed paths:
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Semantics/resolve-names.cpp
    M flang/test/Semantics/select-rank.f90

  Log Message:
  -----------
  [flang] Improve error reporting for procedures determined by usage (#88184)

When a symbol is known to be a procedure due to its being referenced as
a function or subroutine, improve the error messages that appear if the
symbol is also used as an object by attaching the source location of its
procedural use. Also, for errors spotted in name resolution due to how a
given symbol has been used, don't unconditionally set the symbol's error
flag (which is otherwise generally a good idea, to prevent cascades of
errors), so that more unrelated errors related to usage will appear.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list