[flang-commits] [PATCH] D114016: [flang] Fix a bug in INQUIRE(IOLENGTH=) output

vdonaldson via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Nov 16 11:15:52 PST 2021


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

The inquire by output list form of the INQUIRE statement calculates the
number of file storage units that would be required to store the data
of an output list in an unformatted file.  Currently, the result is
incorrectly multiplied by the number of bytes for a data type.  A query
for "INTEGER(KIND=4) A(10)" should be 40, not 160.

Update formatting.


https://reviews.llvm.org/D114016

Files:
  flang/runtime/io-stmt.cpp
  flang/unittests/Runtime/ExternalIOTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114016.387707.patch
Type: text/x-patch
Size: 3745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211116/2eaa7539/attachment.bin>


More information about the flang-commits mailing list