]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix accessibility level of function calls in Ada 95
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 18 Dec 2025 23:57:28 +0000 (00:57 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 9 Jan 2026 10:57:21 +0000 (11:57 +0100)
commit867f8899e404195ae80103bb18e367f96eefa098
tree662720e94c3e94c5aa718549951703e48a44c8b7
parent623a5d30a55521869afc1f398858a7736eea3b80
ada: Fix accessibility level of function calls in Ada 95

This fixes the computation of the accessibility level in the default case.

gcc/ada/ChangeLog:

* accessibility.adb (Function_Call_Or_Allocator_Level): Return the
level of the subprogram in Ada 95 only in the case where the result
type is a return-by-reference type.
gcc/ada/accessibility.adb