[Bug ada/126482] bogus error for 'Unrestricted_Access of overloaded subprogram
"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]> Sun, 02 Aug 2026 12:13:58 +0000
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126482 --- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Eric Botcazou <[email protected]>: https://gcc.gnu.org/g:e28e7daf10beb0b03dac3d4c24cf374e2d8e9b70 commit r15-11449-ge28e7daf10beb0b03dac3d4c24cf374e2d8e9b70 Author: Eric Botcazou <[email protected]> Date: Thu Jul 30 18:29:51 2026 +0200 Ada: Fix bogus error for 'Unrestricted_Access of overloaded subprogram This plugs an old loophole in Analyze_Attribute for the handling of the GNAT specific Unrestricted_Access attribute. gcc/ada/ PR ada/126482 * sem_attr.adb (Analyze_Attribute): Treat Unrestricted_Access like [Unchecked_]Access when it comes to the overloading of the prefix.