This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix a bug in INQUIRE(IOLENGTH=) output
ClosedPublic

Authored by vdonaldson on Nov 16 2021, 11:15 AM.

Details

Summary

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.

Diff Detail

Event Timeline

vdonaldson created this revision.Nov 16 2021, 11:15 AM
vdonaldson requested review of this revision.Nov 16 2021, 11:15 AM
klausler accepted this revision.Nov 16 2021, 11:19 AM
This revision is now accepted and ready to land.Nov 16 2021, 11:19 AM