This is an archive of the discontinued LLVM Phabricator instance.

[flang] Downgrade a fatal error to a warning
ClosedPublic

Authored by klausler on Apr 27 2022, 11:34 AM.

Details

Summary

A non-CHARACTER expression in a CASE statement is allowed to have
a distinct kind (not type) from the expression in its SELECT CASE.
If a value in a CASE statement is out of range for the SELECT CASE
type, emit a warning, but it should not be a fatal error.

Diff Detail

Event Timeline

klausler created this revision.Apr 27 2022, 11:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2022, 11:34 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Apr 27 2022, 11:34 AM
PeteSteinfeld accepted this revision.Apr 27 2022, 12:28 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Apr 27 2022, 12:28 PM
This revision was automatically updated to reflect the committed changes.