Landing: c6625b9b13ab
Project / Subsystem
gcc / fortran
Date
2026-08-29
Author
Jerry DeLisle
Commit
c6625b9b13ab6369a2645ac838b38570d0e86571
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- c6625b9b13ab6369a2645ac838b38570d0e86571
- source_type
- github
- headline
- Fix DO CONCURRENT type-spec scope in Fortran.
- tldr
- Correctly scopes type-spec index-names in Fortran DO CONCURRENT constructs.
- author
- Jerry DeLisle
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • bugfix
- • scope
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-29T00:00:00.000Z
This commit resolves an issue in GCC’s Fortran frontend where the scope of an index-name within a DO CONCURRENT construct’s header was not correctly handled. Previously, type-spec references within the loop body could incorrectly refer to variables outside the construct, leading to wrong code generation. The fix replaces hand-written expression walkers with a gfc_traverse_expr callback and extends statement walkers to cover all expression forms, ensuring that references within the construct always bind to the intended index-name.