Landing: 47bb24546297
Project / Subsystem
gcc / fortran
Date
2026-05-28
Author
Harald Anlauf
Commit
47bb24546297ef6812d69bc800ec005fc7e567e9
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- 47bb24546297ef6812d69bc800ec005fc7e567e9
- source_type
- github
- headline
- Fortran: Fix character length checking for array element arguments.
- tldr
- The Fortran compiler now correctly checks character lengths when passing array element arguments to character dummy arguments.
- author
- Harald Anlauf
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • argument checking
- • compiler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-28T00:00:00.000Z
The Fortran compiler’s character length checking has been improved when passing array elements as arguments to character dummy arguments. Previously, the compiler incorrectly estimated the storage size based on the entire array, leading to bogus warnings. The fix now compares the actual character lengths, preventing false positives when the dummy argument is a scalar character type. A new test case has been added to verify the fix.