https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114398

--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
https://gcc.gnu.org/g:e54d90911858174a0c528d2c06198bc2061b3b22

commit r13-8829-ge54d90911858174a0c528d2c06198bc2061b3b22
Author: Javier Miranda <[email protected]>
Date:   Thu Apr 18 09:54:22 2024 +0000

    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.

Reply via email to