This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Fix MINVAL([CHARACTER(2)::])
ClosedPublic

Authored by klausler on Aug 25 2022, 10:46 AM.

Details

Summary

The result of MINVAL over an empty default character array should
(per the standard) have a 127 in every character position, not just
the first.

Diff Detail

Event Timeline

klausler created this revision.Aug 25 2022, 10:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2022, 10:46 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 25 2022, 10:46 AM
vdonaldson accepted this revision.Aug 25 2022, 1:11 PM

nit: The comment assumes MINVAL, although the code is also invoked for MAXVAL.

This revision is now accepted and ready to land.Aug 25 2022, 1:11 PM
This revision was automatically updated to reflect the committed changes.