[all-commits] [llvm/llvm-project] 37d6c1: [flang] Fix bogus error on recursive ENTRY

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Aug 8 11:26:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37d6c1cc7d4dd3a8a47ba62254bc88521bd50d66
      https://github.com/llvm/llvm-project/commit/37d6c1cc7d4dd3a8a47ba62254bc88521bd50d66
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-08-08 (Tue, 08 Aug 2023)

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

  Log Message:
  -----------
  [flang] Fix bogus error on recursive ENTRY

An incorrect "Implicit declaration of function '...' has a different result type
than in previous declaration" is being emitted for ENTRY names used
recursively.  The predicate used to check for recursive use only allowed
for scopes of functions, not ENTRYs.

Fixes llvm-test-suite/Fortran/gfortran/regression/whole_file_9.f90.

Differential Revision: https://reviews.llvm.org/D157337




More information about the All-commits mailing list