Landing: 301a4e1afa46
Project / Subsystem
gcc / ada
Date
2026-01-21
Author
Eric Botcazou
Commit
301a4e1afa46a3a66f200a5c53ba869b8e3ed589
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 301a4e1afa46a3a66f200a5c53ba869b8e3ed589
- source_type
- github
- headline
- Ada: Correct crash with unchecked union components of formal parameters.
- tldr
- Fixes a compiler crash when comparing unchecked union components of formal parameters in Ada.
- author
- Eric Botcazou
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • bugfix
- • unchecked union
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-01-21T00:00:00.000Z
A compiler crash was resolved when comparing unchecked union components of formal parameters in Ada. The fix involves refining the logic that suspends rule B.3.3(23/2) during expansion of equality functions for unchecked unions. This ensures the rule is suspended only when necessary, specifically when dealing with a component of an unchecked union type subject to a per-object constraint.