Landing: e932c5f83659
Project / Subsystem
gcc / ada
Date
2026-02-16
Author
Piotr Trojanek
Commit
e932c5f8365954ea90da7c6b4ff1a994b8ae927f
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- e932c5f8365954ea90da7c6b4ff1a994b8ae927f
- source_type
- github
- headline
- Remove spurious error on attribute Count with expansion disabled in Ada
- tldr
- This commit removes a false error on the `Count` attribute in specific scenarios where expansion is disabled.
- author
- Piotr Trojanek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • bugfix
- • gnatprove
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-02-16T00:00:00.000Z
This commit fixes an issue where the Ada compiler would incorrectly flag an error when the Count attribute appeared in the barrier of a protected entry while expansion was disabled (e.g., due to the -gnatc switch or when using GNATprove). The compiler now correctly handles the unexpanded Count attribute in these situations, even when the Pure_Barriers restriction is enabled.