Landing: 29242e3533bf
Project / Subsystem
gcc / ada
Date
2026-02-26
Author
Steve Baird
Commit
29242e3533bf99dfce057d2820ed281f26415eea
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 29242e3533bf99dfce057d2820ed281f26415eea
- source_type
- github
- headline
- Avoid compiler hang with cyclic homonym lists.
- tldr
- The Ada compiler now avoids introducing cycles in homonym lists during error handling, preventing potential hangs.
- author
- Steve Baird
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • compiler
- • bugfix
- • error handling
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-02-26T00:00:00.000Z
The Ada compiler could hang when encountering a semantically incorrect program due to cycles in the homonyms list. This commit prevents the introduction of such cycles during error handling within the Install_Entity function. Specifically, if an entity is already installed, the compiler now asserts that an error has been flagged and returns without modifying the homonyms list, thus avoiding the cycle.