Landing: 8ac7ca238c42

Project / Subsystem

gcc / ada

Date

2026-03-06

Author

Eric Botcazou

Commit

8ac7ca238c42d8c28905ecabaa3217b1bcaf72c2

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
8ac7ca238c42d8c28905ecabaa3217b1bcaf72c2
source_type
github
headline
Ada: Fix assertion failure on invalid String_Literal aspect.
tldr
The Ada compiler no longer crashes when encountering an invalid `String_Literal` aspect.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • aspects
  • bugfix
  • compiler crash
discussion_id_link
bugzilla_pr
date
2026-03-06T00:00:00.000Z

The Ada compiler could trigger an assertion failure when processing an invalid String_Literal aspect. This commit fixes this issue by preventing subprograms declared in the body from being incorrectly considered as primitive operations of a type declared in a package specification. This fix prevents a compiler crash and improves the robustness of the Ada compiler.