This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch I/O of bad derived type at compile time
ClosedPublic

Authored by klausler on Feb 28 2022, 1:08 PM.

Details

Summary

Derived types with allocatable and pointer components cannot
be used in I/O data transfer statements unless they have defined
I/O procedures available (as type-bound or regular generics).
These cases are caught as errors by the I/O runtime library,
but it would be better if they were flagged during compilation.

Diff Detail

Event Timeline

klausler created this revision.Feb 28 2022, 1:08 PM
klausler requested review of this revision.Feb 28 2022, 1:08 PM
vdonaldson accepted this revision.Feb 28 2022, 2:13 PM
This revision is now accepted and ready to land.Feb 28 2022, 2:13 PM
klausler updated this revision to Diff 411899.Feb 28 2022, 2:24 PM

Address comment; don't use explicit name string lengths.

vdonaldson accepted this revision.Feb 28 2022, 2:26 PM
This revision was landed with ongoing or failed builds.Feb 28 2022, 3:40 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2022, 3:40 PM