Landing: c8985e8fcfb0
Project / Subsystem
gcc / ada
Date
2026-02-25
Author
Javier Miranda
Commit
c8985e8fcfb01e481e12048edae195e4b367b78a
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- c8985e8fcfb01e481e12048edae195e4b367b78a
- source_type
- github
- headline
- Fix crash on incorrect record field renaming.
- tldr
- This commit fixes a crash in the Ada compiler that occurred during incorrect renaming of record fields.
- author
- Javier Miranda
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • compiler
- • bugfix
- • renaming
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-02-25T00:00:00.000Z
The Ada compiler could crash when handling incorrect renaming of record fields. This commit adds a check in sem_ch8.adb (Find_Renamed_Entity) to protect a call to First_Formal, resolving the crash. This improves the compiler’s robustness when dealing with invalid code.