]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Storage_Error in indirect call to function returning limited type
authorJavier Miranda <miranda@adacore.com>
Thu, 18 Apr 2024 09:54:22 +0000 (09:54 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 10 Jun 2024 09:04:01 +0000 (11:04 +0200)
commitadd6d89eaed4070803882b9a0b643d963ca8d80a
tree8df4272e2c127133151310671fe222cb3b7034da
parentf5e372e2a31c19ed0c784cfb3ebd373802a106ff
ada: Storage_Error in indirect call to function returning limited type

At runtime the code generated by the compiler reports the
exception Storage_Error in an indirect call through an
access-to-subprogram variable that references a function
returning a limited tagged type object.

gcc/ada/

* sem_ch6.adb (Might_Need_BIP_Task_Actuals): Add support
for access-to-subprogram parameter types.
* exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call):
Add dummy BIP parameters to access-to-subprogram types
that may reference a function that has BIP parameters.
gcc/ada/exp_ch6.adb
gcc/ada/sem_ch6.adb