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

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Marc Poulhies <[email protected]>:

https://gcc.gnu.org/g:904ef469bd30d8228e324b8f3452c71bc1e5e6de

commit r17-943-g904ef469bd30d8228e324b8f3452c71bc1e5e6de
Author: Eric Botcazou <[email protected]>
Date:   Tue Mar 17 22:44:13 2026 +0100

    ada: Fix compiler crash on primitive completed by expression function

    This further restricts the special bypass for the freezing of the profile
    in Analyze_Subprogram_Body_Helper to the case of wrapper functions.

    gcc/ada/ChangeLog:

            PR ada/93702
            * exp_ch3.adb (Make_Controlling_Function_Wrappers): Do not set the
            Was_Expression_Function flag on the body.
            * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Avoid freezing the
            profile only for wrapper functions.

Reply via email to