[all-commits] [llvm/llvm-project] 028477: [flang] Accept BOZ literals for some actual arguments

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jan 19 17:32:11 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 028477758d19398c91e3b17a749314b04560023b
      https://github.com/llvm/llvm-project/commit/028477758d19398c91e3b17a749314b04560023b
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-01-19 (Wed, 19 Jan 2022)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Semantics/check-call.cpp
    M flang/test/Semantics/boz-literal-constants.f90

  Log Message:
  -----------
  [flang] Accept BOZ literals for some actual arguments

Consistent with previously documented policy, in which
BOZ literals are accepted in non-standard-conforming circumstances
where they can be converted to an unambiguous known numeric type,
allow BOZ literals to be passed as an actual argument in a reference
to a procedure whose explicit interface has a corresponding dummy
argument with a numeric type to which the BOZ literal may be
converted.  Improve error messages associated with BOZ literal
actual arguments, too: don't emit multiple errors.

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




More information about the All-commits mailing list