[Ada] Spurious accessibility error on call in return statement
commit5b48ea9dacdae9edae491d72b5db8864109a48a1
authorJustin Squirek <squirek@adacore.com>
Tue, 22 Dec 2020 14:58:43 +0000 (22 09:58 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 3 May 2021 09:28:22 +0000 (3 05:28 -0400)
tree757777aa770ef249befef167eea4d1c9ef0db1c3
parent6537318f79694a218b1d4816fbe86dc59694abe5
[Ada] Spurious accessibility error on call in return statement

gcc/ada/

* sem_util.adb (In_Return_Value): Modified to detect when
implicit dereference is specified on the return type of a
function call within the expression being checked.
gcc/ada/sem_util.adb