This is an archive of the discontinued LLVM Phabricator instance.

[flang] Diagnose ridiculously large kind parameters
ClosedPublic

Authored by klausler on Mar 9 2023, 4:33 PM.

Details

Summary

Kind parameters on literals (1_4, 1.0_8, 4_"Unicode") are not
being caught as errors if they're extremely large integer values
that become valid when truncated to C++'s int type.

Diff Detail

Event Timeline

klausler created this revision.Mar 9 2023, 4:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 9 2023, 4:33 PM
klausler requested review of this revision.Mar 9 2023, 4:33 PM
PeteSteinfeld accepted this revision.Mar 10 2023, 6:26 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 10 2023, 6:26 AM
This revision was automatically updated to reflect the committed changes.