Landing: 071d1cbad22d
Project / Subsystem
gcc / ada
Date
2026-05-27
Author
Eric Botcazou
Commit
071d1cbad22d78ea452e870cbce7d3b0a16dc0d4
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 071d1cbad22d78ea452e870cbce7d3b0a16dc0d4
- source_type
- github
- headline
- Ada: Robustify error recovery of structural instantiation in generic formal part
- tldr
- GCC's Ada compiler improves error recovery for structural instantiations within generic formal parts, preventing cascading errors during compilation.
- author
- Eric Botcazou
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • error-recovery
- • generics
- • compiler-internals
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-27T00:00:00.000Z
The GCC Ada compiler has enhanced its error recovery mechanism for structural instantiations within generic formal parts. This change in sem_ch3.adb and sem_ch12.adb prevents cascading compilation errors that previously occurred when unresolved types were encountered during the analysis of private extensions and formal derived types. By returning Any_Type when Find_Type fails, the compiler can now gracefully continue parsing, providing more localized and understandable error messages.