This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch attempts to initialize allocatable components with DATA statement
ClosedPublic

Authored by klausler on Dec 15 2022, 11:43 AM.

Details

Summary

Nice try, but no, you can't initialize an instance of a derived type using a
structure constructor that has a component corresponding to an allocatable
component.

Diff Detail

Event Timeline

klausler created this revision.Dec 15 2022, 11:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2022, 11:43 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Dec 15 2022, 11:43 AM
PeteSteinfeld accepted this revision.Dec 15 2022, 1:21 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Dec 15 2022, 1:21 PM