Landing: b22da5073d44
Project / Subsystem
gcc / ada
Date
2026-05-18
Author
Mathias Aparicio
Commit
b22da5073d4410a9cce03366692b6b1e80d13119
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- b22da5073d4410a9cce03366692b6b1e80d13119
- source_type
- github
- headline
- Ada: Text_IO now raises Data_Error for out-of-range input.
- tldr
- The Ada compiler now correctly raises `Data_Error` instead of `Constraint_Error` for out-of-range input in `Text_IO` functions, conforming to the Ada Reference…
- author
- Mathias Aparicio
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • standard-compliance
- • error-handling
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-18T00:00:00.000Z
The Ada compiler’s Text_IO library now aligns with the Ada Reference Manual (ARM) by propagating Data_Error instead of Constraint_Error when input values exceed the bounds of a subtype. Specifically, Get_Upper_Half_Char and Get_Upper_Half_Char_Immed functions were updated to reflect this change. This ensures that Ada programs handle invalid input consistent with language specifications, which can affect error handling and program resilience.