]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Improve task entry context detection
authorRonan Desplanques <desplanques@adacore.com>
Thu, 21 Nov 2024 09:01:47 +0000 (10:01 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 12 Dec 2024 09:58:00 +0000 (10:58 +0100)
commit8f931770a52e208b0f66066e8c6e09214597655f
treebf1b74fbaa619e04ec050cc3da9c7454e02d92df
parent6b23686af726cba55d1ec07748e4ba0324cf2930
ada: Improve task entry context detection

Access parameters are not allowed in specifications of task entries.
Before this patch, the compiler failed to detect that case in accept
statements that were not directly in their task body's scopes. This
patch fixes this issue.

gcc/ada/ChangeLog:

* sem_ch3.adb (Access_Definition): Remove test for task entry context.
* sem_ch6.adb (Process_Formals): Add improved test for task entry
context.
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch6.adb