Landing: e0f62720743e
Project / Subsystem
gcc / fortran
Date
2026-09-23
Author
Jerry DeLisle
Commit
e0f62720743e7750eef0c86dfa23d5965e2de785
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- e0f62720743e7750eef0c86dfa23d5965e2de785
- source_type
- github
- headline
- Fortran: ICE with %LEN of deferred-length character in ASSOCIATE
- tldr
- Fixes an ICE in Fortran when querying the length or kind of deferred-length character variables within an ASSOCIATE construct.
- author
- Jerry DeLisle
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • compiler bug
- • ice
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-23T00:00:00.000Z
An internal compiler error (ICE) occurred in the Fortran frontend when a %LEN or %KIND inquiry was made on a deferred-length character variable inside an ASSOCIATE construct. This was due to the inquiry’s result retaining a ‘deferred’ flag, which caused a segfault when later processed. The fix clears this flag and correctly handles the character length for such inquiries, also resolving an issue where inquiries on ASSOCIATE names incorrectly reverted the type to CHARACTER.