[flang-commits] [PATCH] D120675: [flang] Catch I/O of bad derived type at compile time

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Feb 28 13:08:44 PST 2022


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D120675

Files:
  flang/include/flang/Semantics/symbol.h
  flang/include/flang/Semantics/tools.h
  flang/lib/Semantics/check-io.cpp
  flang/lib/Semantics/check-io.h
  flang/lib/Semantics/runtime-type-info.cpp
  flang/lib/Semantics/symbol.cpp
  flang/lib/Semantics/tools.cpp
  flang/test/Semantics/io12.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120675.411872.patch
Type: text/x-patch
Size: 13860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220228/426bbd25/attachment.bin>


More information about the flang-commits mailing list