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

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Eric Botcazou
<[email protected]>:

https://gcc.gnu.org/g:880f07b84291b1511bbd7fa7226dab57af9eec7f

commit r14-12469-g880f07b84291b1511bbd7fa7226dab57af9eec7f
Author: Eric Botcazou <[email protected]>
Date:   Mon Mar 23 22:01:52 2026 +0100

    Ada: Fix crash on instantiation in separate package body

    This is an old regression present on all active branches for a quite
unusual
    setup where a generic package is declared and instantiated in a subunit,
and
    which comes from a thinko in the Has_Body.Find_Body routine of Sem_Elab.

    gcc/ada/
            PR ada/124607
            * sem_elab.adb (Has_Body.Find_Body): Fix thinko.

    gcc/testsuite/
            * gnat.dg/generic_inst20.ads, gnat.dg/generic_inst20.adb: New test.
            * gnat.dg/generic_inst20-sub.adb: New helper.

Reply via email to