Landing: 7aa4b1c5054f

Project / Subsystem

gcc / gcc/ada

Date

2026-09-22

Author

Eric Botcazou

Commit

7aa4b1c5054f12c134e69ed295638885f4b3b9c1

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/ada
patch_id
—
commit_hash
7aa4b1c5054f12c134e69ed295638885f4b3b9c1
source_type
github
headline
Ada: Fix spurious error on membership test in instance body
tldr
Corrects an Ada compiler error where a membership test in an instance body was incorrectly flagged.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • ada
  • • compiler
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-09-22T00:00:00.000Z

The Ada compiler previously generated a spurious error for a membership test within an instance body. This commit modifies the Analyze_Membership_Op function to prevent an error when the right operand is a Raise_Error node, resolving the issue.