]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Set Ekind early in object declarations
authorRonan Desplanques <desplanques@adacore.com>
Thu, 6 Mar 2025 11:54:44 +0000 (12:54 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 9 Jun 2025 06:32:09 +0000 (08:32 +0200)
commitaf68e74167292709c238a35a40720714679bb394
treea3f7242330e251092fb014329c889740194cb061
parente9066cf788e689a119a068ecf38e17c666bfb6a4
ada: Set Ekind early in object declarations

Setting the proper Ekind on object entities was once needed to catch
cases of premature usages. The introduction of Is_Self_Hidden changed
that, so this patch replaces the Mutate_Ekind calls in the natural
place.

gcc/ada/ChangeLog:

* sem_ch3.adb (Analyze_Object_Declaration): Call Mutate_Ekind earlier.
gcc/ada/sem_ch3.adb