This is an archive of the discontinued LLVM Phabricator instance.

flang] Fix crash in semantic error recovery situation
ClosedPublic

Authored by klausler on Nov 5 2021, 12:28 PM.

Details

Summary

[A CHECK() in semantics is triggering when analyzing a program
with an undefined derived type pointer because the CHECK is
expecting a new error message to have been issued in a function
but not allowing for the case that a diagnostic could have been
produced earlier. Adjust the predicate.

Diff Detail

Event Timeline

klausler created this revision.Nov 5 2021, 12:28 PM
klausler requested review of this revision.Nov 5 2021, 12:28 PM
PeteSteinfeld accepted this revision.Nov 5 2021, 4:01 PM

Looks great!

This revision is now accepted and ready to land.Nov 5 2021, 4:01 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2021, 11:19 AM