Skip to content

Conversation

@klausler
Copy link
Contributor

The IOTYPE and V_LIST dummy arguments to a defined formatted I/O subroutine are extracted from a DT edit descriptor in a FORMAT. They are currently stored in the DataEdit structure, and their maximum sizes are rather small since DataEdits are sometimes returned or passed by value.

This patch moves their storage into the FormattedIoStatementState structure and enlarges them a bit.

Fixes #154954.

The IOTYPE and V_LIST dummy arguments to a defined formatted I/O
subroutine are extracted from a DT edit descriptor in a FORMAT.
They are currently stored in the DataEdit structure, and their
maximum sizes are rather small since DataEdits are sometimes returned
or passed by value.

This patch moves their storage into the FormattedIoStatementState
structure and enlarges them a bit.

Fixes llvm#154954.
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.
The test cases are fixed.
Thanks.

@klausler klausler merged commit 2c58d19 into llvm:main Sep 30, 2025
9 checks passed
@klausler klausler deleted the bug154954 branch September 30, 2025 17:35
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Oct 3, 2025
The IOTYPE and V_LIST dummy arguments to a defined formatted I/O
subroutine are extracted from a DT edit descriptor in a FORMAT. They are
currently stored in the DataEdit structure, and their maximum sizes are
rather small since DataEdits are sometimes returned or passed by value.

This patch moves their storage into the FormattedIoStatementState
structure and enlarges them a bit.

Fixes llvm#154954.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[flang] Failed at runtime when handling user-defined v_list with DT edit descriptor.

3 participants