Skip to content

Conversation

@klausler
Copy link
Contributor

When a formatted WRITE takes place in a defined output subroutine called from a context in which record advancement is allowed, such as NAMELIST, the char-string-edit-descs in the format can trigger record advancement.

Also clean up confusing messiness lingering from the separation of iostat.h two headers in flang/.../Runtime. iostat.h didn't need to be put into flang/.../Runtime since it's included only by flang-rt, and iostat-consts.h doesn't need one of its includes.

Fixes #167757.

@llvmbot llvmbot added the flang Flang issues not falling into any other category label Nov 12, 2025
When a formatted WRITE takes place in a defined output subroutine
called from a context in which record advancement is allowed, such
as NAMELIST, the char-string-edit-descs in the format can trigger
record advancement.

Also clean up confusing messiness lingering from the separation of
iostat.h two headers in flang/.../Runtime.  iostat.h didn't need to
be put into flang/.../Runtime since it's included only by flang-rt,
and iostat-consts.h doesn't need one of its includes.

Fixes llvm#167757.
Copy link
Contributor

@DanielCChen DanielCChen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Thanks!

@klausler klausler merged commit a284ce8 into llvm:main Nov 14, 2025
10 checks passed
@klausler klausler deleted the bug167757 branch November 14, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang Flang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[flang] DTIO failure with NML output

4 participants