[flang-commits] [PATCH] D117698: [flang] Accept BOZ literals for some actual arguments

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Jan 19 10:12:22 PST 2022


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D117698

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117698.401311.patch
Type: text/x-patch
Size: 6441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220119/6134ff4e/attachment-0001.bin>


More information about the flang-commits mailing list