Landing: 3e3c6a575f6e

Project / Subsystem

gcc / ada

Date

2026-09-22

Author

Viljar Indus

Commit

3e3c6a575f6e5ca2da6bb19bb905ec0668c89d48

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
—
commit_hash
3e3c6a575f6e5ca2da6bb19bb905ec0668c89d48
source_type
github
headline
Ada: Fix crash in can_equal_min_or_max_val_p
tldr
Prevents a crash in Ada code generation by ensuring min/max value checks only apply to integral types.
author
Viljar Indus
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • ada
  • • bugfix
  • • codegen
  • • crash
discussion_id_link
—
bugzilla_pr
—
date
2026-09-22T00:00:00.000Z

This commit addresses a crash in the Ada compiler’s code generation phase, specifically within the can_equal_min_or_max_val_p function. The function previously attempted to compare minimum or maximum values for pointer types, for which such concepts are undefined. The fix adds a guard to ensure this check is only performed when dealing with known integral types, thus preventing the crash.