]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix crash when creating extra formals for aliased types
authorDenis Mazzucato <mazzucato@adacore.com>
Wed, 9 Jul 2025 10:03:53 +0000 (12:03 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 22 Jul 2025 08:35:16 +0000 (10:35 +0200)
commit3289f1a374481d85c01f2db30201ea815624e612
tree35a9e72df56e92ca80bc320d8b742c49d5369198
parent6037cf8093eff77aa094ee759b3f3f02f31b9776
ada: Fix crash when creating extra formals for aliased types

This patch makes sure that we return the same decision for all aliased
types when checking if the BIP task extra actuals are needed.

gcc/ada/ChangeLog:

* sem_ch6.adb (Might_Need_BIP_Task_Actuals): Before retrieving the original corresponding
operation we retrieve first the root of the aliased chain.
gcc/ada/sem_ch6.adb