[all-commits] [llvm/llvm-project] 9f0f54: [flang] Improve error messages for module self-USE...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Jan 14 13:00:26 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f0f54a6290ead2e1581d75582759822a19fd885
      https://github.com/llvm/llvm-project/commit/9f0f54a6290ead2e1581d75582759822a19fd885
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-01-14 (Tue, 14 Jan 2025)

  Changed paths:
    M flang/include/flang/Semantics/tools.h
    M flang/lib/Semantics/resolve-names.cpp
    M flang/lib/Semantics/tools.cpp
    A flang/test/Semantics/self-use.f90

  Log Message:
  -----------
  [flang] Improve error messages for module self-USE (#122747)

A module can't USE itself, either directly within the top-level module
or from one of its submodules. Add a test for this case (which we
already caught), and improve the diagnostic for the more confusing case
involving a submodule.



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