]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Call Mutate_Ekind earlier for formal entities
authorRonan Desplanques <desplanques@adacore.com>
Thu, 13 Mar 2025 13:12:52 +0000 (14:12 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 9 Jun 2025 06:32:12 +0000 (08:32 +0200)
commit51e01fb40a3f1309320207bdc12d4ae75b01a67a
treeeec7c1df8e6637fa6291cf2520c93f642b5e3756
parentff89e55497f1a36b6a37a43c5837d89d30fe9601
ada: Call Mutate_Ekind earlier for formal entities

This patch migrates the handling of "premature usage" type of error to
the Is_Self_Hidden mechanism.

gcc/ada/ChangeLog:

* sem_ch6.adb (Set_Formal_Mode): Extend profile. Move parts of the
body…
(Process_Formals): … here. Move call to Set_Formal_Mode earlier. Call
Set_Is_Not_Self_Hidden in second traversal.
gcc/ada/sem_ch6.adb