[all-commits] [llvm/llvm-project] 7cc4e9: [flang] Accept non-interoperable LOGICAL scalar du...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Mar 13 17:59:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cc4e980e0f4032fd1bc4a736a9944c59aeff726
      https://github.com/llvm/llvm-project/commit/7cc4e980e0f4032fd1bc4a736a9944c59aeff726
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-03-13 (Mon, 13 Mar 2023)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/lib/Semantics/check-declarations.cpp
    M flang/test/Semantics/bind-c11.f90

  Log Message:
  -----------
  [flang] Accept non-interoperable LOGICAL scalar dummy arguments

Some Fortran compilers allow kinds of LOGICAL other than C_BOOL
for the types of dummy arguments to interoperable (BIND(C))
procedures.  As any kind of LOGICAL can be converted to any
other without loss of information, this seems to be a useful
unambiguous extension that is attested in real codes; accept it
for scalars with a portability warning.

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




More information about the All-commits mailing list