[all-commits] [llvm/llvm-project] 56c468: [flang] Suppress USEs of non-USE'able names in mod...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jan 31 10:55:11 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56c468474de77cd7b6954a74190f9603d393d02a
      https://github.com/llvm/llvm-project/commit/56c468474de77cd7b6954a74190f9603d393d02a
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-01-31 (Fri, 31 Jan 2025)

  Changed paths:
    M flang/lib/Semantics/mod-file.cpp
    A flang/test/Semantics/bug124716.f90

  Log Message:
  -----------
  [flang] Suppress USEs of non-USE'able names in module files (#124980)

When harvesting and formatting symbols USE'd from other modules, don't
emit USE statements to module files for names unless they come from the
topmost scope of the module. There was a check to prevent names from
derived type scopes from escaping in this way, but it must be made more
general to prevent other cases like dummy arguments in interfaces.

Fixes https://github.com/llvm/llvm-project/issues/124716.



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