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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Eric Botcazou
<ebotca...@gcc.gnu.org>:

https://gcc.gnu.org/g:7363d73e26351f42406f7ae31e985768e9a1109a

commit r14-10744-g7363d73e26351f42406f7ae31e985768e9a1109a
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Fri Oct 4 11:27:33 2024 +0200

    Fix crash with subunit of local package

    This is a regression present on the 14 branch only: the expander gets
    confused when trying to insert the finalizer of a procedure that contains
    a package as a subunit.  The offending code no longer exists on the
    mainline so this adds the minimal fix to address the issue.

    gcc/ada
            PR ada/116430
            * exp_ch7.adb (Build_Finalizer.Create_Finalizer): For the insertion
            point of the finalizer, deal with package bodies that are subunits.

Reply via email to