Landing: 4bcfc33090c5

Project / Subsystem

gcc / ada

Date

2026-03-04

Author

Javier Miranda

Commit

4bcfc33090c51bdb2465e2952ac41de5c831532f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
4bcfc33090c51bdb2465e2952ac41de5c831532f
source_type
github
headline
Ada: Remove useless call to Can_Have_Formals.
tldr
Removes a useless call to `Can_Have_Formals` in `Is_Access_To_Subprogram_Wrapper` to fix an incorrect error message.
author
Javier Miranda
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • semantic analysis
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-03-04T00:00:00.000Z

A call to Can_Have_Formals within Is_Access_To_Subprogram_Wrapper was found to be unnecessary. This commit removes it, resolving an issue where an incorrect error message was being displayed due to this redundant check. This simplifies the code and ensures more accurate error reporting.