Landing: 3e796b2c9699
Project / Subsystem
gcc / ada
Date
2026-01-12
Author
Javier Miranda
Commit
3e796b2c9699bd7335a4370da0fed61a0d8fbf14
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 3e796b2c9699bd7335a4370da0fed61a0d8fbf14
- source_type
- github
- headline
- Ada: Handle call to C++ constructor in generic instantiation
- tldr
- This commit adds missing support for C++ constructor calls passed as generic formal subprogram parameters in Ada.
- author
- Javier Miranda
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • c++
- • generics
- • interoperability
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-01-12T00:00:00.000Z
This commit introduces support for passing C++ constructor calls as generic formal subprogram parameters in Ada. The change ensures that subtypes inherit the CPP_Class attribute, which is required for successful instantiation of generics that involve C++ constructors. This allows Ada code to more seamlessly interact with C++ code through generics.