This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix a crash when an array constructor contains an unlimited polymorphic value
ClosedPublic

Authored by PeteSteinfeld on Jul 14 2020, 10:12 AM.

Details

Summary

C7113 States that "An ac-value shall not be unlimited polymorphic." We failed
to detect this situation which resulted in a crash when trying to get the
underlying derived type specification of the unlimited polymorphic value.

I added code to avoid the crash, code to emit an error message, and a test.

Diff Detail

Event Timeline

PeteSteinfeld created this revision.Jul 14 2020, 10:12 AM
Herald added a project: Restricted Project. · View Herald Transcript
PeteSteinfeld added a project: Restricted Project.Jul 14 2020, 10:14 AM
klausler accepted this revision.Jul 14 2020, 11:05 AM

Looks great to me; thanks for the fix!

This revision is now accepted and ready to land.Jul 14 2020, 11:05 AM
tskeith accepted this revision.Jul 14 2020, 11:31 AM