[llvm] [flang][runtime] Handle empty NAMELIST value list (PR #151770)
Andre Kuhlenschmidt via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 11:32:26 PDT 2025
================
@@ -570,12 +570,14 @@ bool IODEF(InputNamelist)(Cookie cookie, const NamelistGroup &group) {
addendum && addendum->derivedType()) {
const NonTbpDefinedIoTable *table{group.nonTbpDefinedIo};
listInput->ResetForNextNamelistItem(/*inNamelistSequence=*/true);
- if (!IONAME(InputDerivedType)(cookie, *useDescriptor, table)) {
+ if (!IONAME(InputDerivedType)(cookie, *useDescriptor, table) &&
+ io.GetIoErrorHandler().InError()) {
----------------
akuhlens wrote:
Could this just be `handler.InError()`? Same question below.
https://github.com/llvm/llvm-project/pull/151770
More information about the llvm-commits
mailing list