]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Add missing dimension information for target names
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 11 Jun 2024 17:29:22 +0000 (19:29 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 27 Jun 2024 08:19:12 +0000 (10:19 +0200)
commitd4c990759bcdc1f2b3384397cae6d8cb76a4cdad
tree49bf4c170d4d008cdbf48af329a870e8286d8e99
parent432b8a346e10488a1751b86e7c51fff3ee870ae4
ada: Add missing dimension information for target names

It is computed from the Etype of N_Target_Name nodes.

gcc/ada/

* sem_ch5.adb (Analyze_Target_Name): Call Analyze_Dimension on the
node once the Etype is set.
* sem_dim.adb (OK_For_Dimension): Set to True for N_Target_Name.
(Analyze_Dimension): Call Analyze_Dimension_Has_Etype for it.
gcc/ada/sem_ch5.adb
gcc/ada/sem_dim.adb