This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch out-of-range constant arguments to CHAR/ACHAR
ClosedPublic

Authored by klausler on Jan 27 2023, 9:33 AM.

Details

Summary

When folding the intrinsic functions CHAR and ACHAR, emit an
error message if the argument is out of the valid range for the
kind of the result.

Diff Detail

Event Timeline

klausler created this revision.Jan 27 2023, 9:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2023, 9:33 AM
klausler requested review of this revision.Jan 27 2023, 9:33 AM
PeteSteinfeld accepted this revision.Jan 27 2023, 11:10 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jan 27 2023, 11:10 AM

Actually, @klausler, I couldn't verify that this patch builds and tests correctly. I don't think that the file folding05.f90 was downloaded correctly to my machine. Note that Phabricator seems to think that it's a binary file.

Actually, @klausler, I couldn't verify that this patch builds and tests correctly. I don't think that the file folding05.f90 was downloaded correctly to my machine. Note that Phabricator seems to think that it's a binary file.

It does have some UTF-8 encodings in it.

klausler updated this revision to Diff 492864.Jan 27 2023, 11:38 AM

Use "git show -a" to get a diff of a test file with some non-ASCII characters.