Landing: fc2164a2168b

Project / Subsystem

gcc / gcc/ada

Date

2026-05-06

Author

Eric Botcazou

Commit

fc2164a2168b8c80bad5bac69e2ebc03f904e89f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/ada
patch_id
commit_hash
fc2164a2168b8c80bad5bac69e2ebc03f904e89f
source_type
github
headline
Fixes `Valid_Scalars` attribute for private tagged types
tldr
This commit resolves an issue where the Ada `Valid_Scalars` attribute failed to work correctly with certain private tagged types.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • bugfix
  • ada
  • type-system
discussion_id_link
bugzilla_pr
date
2026-05-06T00:00:00.000Z

The GCC Ada compiler now correctly handles the Valid_Scalars attribute for private tagged types, specifically addressing cases where only the full view of the type is tagged. Previously, the attribute’s checks would incorrectly fail in such scenarios, leading to compiler errors. This fix ensures the attribute works as intended across a wider range of private tagged type configurations, improving reliability for developers using this feature.