Landing: 8c57a6b7959d
Project / Subsystem
gcc / fortran
Date
2026-05-27
Author
Jerry DeLisle
Commit
8c57a6b7959dcf16ed5321cd5214f66e7e6ad4d7
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- 8c57a6b7959dcf16ed5321cd5214f66e7e6ad4d7
- source_type
- github
- headline
- Fortran: Fixes ICE for ASSOCIATE selectors with type-bound user-defined operators.
- tldr
- This commit resolves three bugs that could cause an Internal Compiler Error (ICE) or incorrect code generation when `ASSOCIATE` selectors in Fortran involved t…
- author
- Jerry DeLisle
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • compiler-bug
- • object-oriented
- • semantic-analysis
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-27T00:00:00.000Z
This commit addresses three interconnected bugs in the Fortran compiler that led to either an Internal Compiler Error (ICE) or incorrect code when ASSOCIATE selectors were type-bound user-defined operator expressions. These issues stemmed from incorrect handling of inherited type-bound procedures, premature returns in type resolution, and an inability to correctly type-check complex operator expressions within ASSOCIATE. The fixes involve improvements in symbol lookup for inherited procedures, corrected type resolution logic, and new helper functions for robust type inferencing of operator expressions. This significantly enhances the compiler’s ability to handle advanced Fortran features.