[flang-commits] [PATCH] D117159: [flang] Extension: initialization of LOGICAL with INTEGER & vice versa

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Jan 12 14:17:34 PST 2022


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

We already accept assignments of INTEGER to LOGICAL (& vice versa)
as an extension, but not initialization.  Extend initialization
to cover those cases.

(Also fix misspelling in nearby comment as suggested by code reviewer.)

Decouple an inadvertent dependence cycle by moving two
one-line function definitions into a header file.


https://reviews.llvm.org/D117159

Files:
  flang/docs/Extensions.md
  flang/include/flang/Evaluate/logical.h
  flang/include/flang/Evaluate/tools.h
  flang/include/flang/Semantics/semantics.h
  flang/lib/Evaluate/check-expression.cpp
  flang/lib/Evaluate/formatting.cpp
  flang/lib/Evaluate/tools.cpp
  flang/lib/Semantics/data-to-inits.cpp
  flang/lib/Semantics/semantics.cpp
  flang/test/Semantics/data06.f90
  flang/test/Semantics/data15.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117159.399464.patch
Type: text/x-patch
Size: 13374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220112/540ceb00/attachment-0001.bin>


More information about the flang-commits mailing list