This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix crash in semantics in error recovery
ClosedPublic

Authored by klausler on Sep 22 2022, 5:19 PM.

Details

Summary

When a FUNCTION statement has both an explicit type in its prefix
and a RESULT clause in its suffix, semantics crashes due to the
redundant type; emit a nice error message instead.

Fixes https://github.com/llvm/llvm-project/issues/57586.

Diff Detail

Event Timeline

klausler created this revision.Sep 22 2022, 5:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 5:19 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Sep 22 2022, 5:19 PM
jeanPerier accepted this revision.Sep 23 2022, 1:08 AM
This revision is now accepted and ready to land.Sep 23 2022, 1:08 AM
This revision was automatically updated to reflect the committed changes.