[all-commits] [llvm/llvm-project] 9a49a0: [flang] Refine handling of NULL() actual to non-op...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Feb 27 14:27:41 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a49a03dc95bdd2b6ef4807291136eca46370517
      https://github.com/llvm/llvm-project/commit/9a49a03dc95bdd2b6ef4807291136eca46370517
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-02-27 (Thu, 27 Feb 2025)

  Changed paths:
    M flang/include/flang/Support/Fortran-features.h
    M flang/lib/Semantics/check-call.cpp
    M flang/lib/Support/Fortran-features.cpp
    M flang/test/Semantics/call27.f90

  Log Message:
  -----------
  [flang] Refine handling of NULL() actual to non-optional allocatable … (#116126)

…dummy

We presently allow a NULL() actual argument to associate with a
non-optional dummy allocatable argument only under INTENT(IN). This is
too strict, as it precludes the case of a dummy argument with default
intent. Continue to require that the actual argument be definable under
INTENT(OUT) and INTENT(IN OUT), and (contra XLF) interpret NULL() as
being an expression, not a definable variable, even when it is given an
allocatable MOLD.

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



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