Skip to content
Merged
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
6 changes: 6 additions & 0 deletions flang-rt/lib/runtime/namelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,12 @@ bool IODEF(InputNamelist)(Cookie cookie, const NamelistGroup &group) {
}
if (next && *next == '/') {
io.HandleRelativePosition(byteCount);
if (auto *listInput{
io.get_if<ListDirectedStatementState<Direction::Input>>()}) {
// Don't let the namelist's terminal '/' mess up a parent I/O's
// list-directed input.
listInput->set_hitSlash(false);
}
} else if (*next && (*next == '&' || *next == '$')) {
// stop at beginning of next group
} else {
Expand Down
Loading