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

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

https://gcc.gnu.org/g:a9587fcb5512fb3b0bf4d4ae52f4012b3bdcdaa7

commit r16-9742-ga9587fcb5512fb3b0bf4d4ae52f4012b3bdcdaa7
Author: Eric Botcazou <[email protected]>
Date:   Wed Oct 7 13:05:14 2026 +0200

    Ada: Fix missing internal finalization of protected object

    This occurs when the type of the protected object is a constrained subtype
    of an unconstrained protected type, and comes from an obsolete kludge.

    gcc/ada/
            PR ada/127756
            * exp_util.adb (Find_Protection_Type): Remove early return.

    gcc/testsuite/
            * gnat.dg/protected_subtype2.adb: New test.

Reply via email to