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

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

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

commit r13-10102-gc59dcc612d793df568107ca97955e3e2f069128f
Author: Eric Botcazou <[email protected]>
Date:   Wed Feb 25 14:00:21 2026 +0100

    Ada: Fix missing implicit dereference for access-to-protected used as
prefix

    ... of access-related attribute.  This is a regression present on all
active
    branches caused by a local resolution of the N_Selected_Component node.

    gcc/ada/
            PR ada/124226
            * sem_res.adb (Resolve_Implicit_Dereference): Move declaration
to...
            * sem_res.ads (Resolve_Implicit_Dereference): ...here.
            * sem_attr.adb (Resolve_Attribute) <Attribute_Access>: Also call
            Resolve_Implicit_Dereference when resolving a protected operation.

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

Reply via email to