[all-commits] [llvm/llvm-project] 36caa8: [flang] Fix crash on SMP with dummy procedure (#12...

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


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

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

  Log Message:
  -----------
  [flang] Fix crash on SMP with dummy procedure (#124663)

When a separate module procedure is defined with MODULE PROCEDURE, the
compiler crashes if there is a dummy procedure in the interface defined
with only a result type. This is due to the type already having been
defined on the ProcEntityDetails symbol as part of earlier wholesale
symbol duplication. Adjust the code to not define the result type of the
ProcEntityDetails if it is already present, but to verify that it is the
same type instead.

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



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