Landing: 8fdda43b8f2e

Project / Subsystem

gcc / ada

Date

2026-09-23

Author

Eric Botcazou

Commit

8fdda43b8f2edd2bf36574ba1f1f9968076047b9

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
—
commit_hash
8fdda43b8f2edd2bf36574ba1f1f9968076047b9
source_type
github
headline
Ada: Correctly handle ill-formed quantified expressions in pragmas
tldr
Fixes Program_Error exceptions raised by malformed quantified expressions in Ada pragmas like Assert and Check.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • ada
  • • compiler
  • • error handling
discussion_id_link
—
bugzilla_pr
—
date
2026-09-23T00:00:00.000Z

This change resolves an issue where Ada’s compiler raised a Program_Error exception when encountering ill-formed quantified expressions, particularly within pragmas such as Assert, Check, and Loop_Invariant. The fix involves removing unused code related to ‘Old attribute renaming and introducing a new procedure to detect and report these malformed expressions.