Landing: 31f66a843429
Project / Subsystem
gcc / fortran
Date
2026-08-08
Author
Jerry DeLisle
Commit
31f66a843429269ee9cdc6ce69ba3ff698773a35
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- 31f66a843429269ee9cdc6ce69ba3ff698773a35
- source_type
- github
- headline
- Fortran: Fix array constructor issues with character length expressions.
- tldr
- Resolves bugs in Fortran array constructors related to character length expressions and dangling charlens.
- author
- Jerry DeLisle
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • compiler bug
- • parsing
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-08T00:00:00.000Z
This commit addresses two issues in Fortran’s array constructor handling of character length expressions. The first fixes a problem with trans-array.cc by adding a check for INTEGER_CST. The second, more extensive fix, improves how character lengths (charlens) are tracked during parsing to prevent them from being left dangling, ensuring proper cleanup and avoiding memory issues.