[all-commits] [llvm/llvm-project] 4b23d4: [flang] Extension: allow override of inaccessible ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jun 4 09:23:57 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b23d4c7ca4307f3d5c900782c78f1b66236d0c2
      https://github.com/llvm/llvm-project/commit/4b23d4c7ca4307f3d5c900782c78f1b66236d0c2
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-06-04 (Wed, 04 Jun 2025)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/include/flang/Support/Fortran-features.h
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/runtime-type-info.cpp
    M flang/test/Semantics/deferred01.f90

  Log Message:
  -----------
  [flang] Extension: allow override of inaccessible DEFERRED binding (#142691)

Inaccessible procedure bindings can't be overridden, but DEFERRED
bindings must be in a non-abstract extension. We presently emit an error
for an attempt to override an inaccessible binding in this case. But
some compilers accept this usage, and since it seems safe enough, I'll
allow it with an optional warning. Codes can avoid this warning and
conform to the standard by changing the deferred bindings to be public.



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