Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions flang-rt/lib/runtime/descriptor-io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ static RT_API_ATTRS Fortran::common::optional<bool> DefinedFormattedIo(
io.GotChar(io.InquirePos() - *startPos);
}
return handler.GetIoStat() == IostatOk;
} else if (peek && peek->descriptor == DataEdit::ListDirectedNullValue) {
return false;
} else {
// There's a defined I/O subroutine, but there's a FORMAT present and
// it does not have a DT data edit descriptor, so apply default formatting
Expand Down
7 changes: 7 additions & 0 deletions flang/docs/Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,13 @@ print *, [(j,j=1,10)]
`ALLOCATE` and `DEALLOCATE` statements with error recovery for
multiple variables.

* When a "null" value is encountered in list-directed input, the
corresponding effective item in the data list is left unchanged,
even when it has a derived type with a defined `READ(FORMATTED)`
subroutine. This is the most literal reading of F'2023 13.10.3.2p2
and the portable interpretation across the most common Fortran
compilers.

## De Facto Standard Features

* `EXTENDS_TYPE_OF()` returns `.TRUE.` if both of its arguments have the
Expand Down
Loading