https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124226
--- Comment #14 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:f046752d2e95e4ff53de8abace736da0ad2cedc5 commit r14-12330-gf046752d2e95e4ff53de8abace736da0ad2cedc5 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.
