]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix incorrect handling of iterator specifications in recent change
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 16 Jun 2023 08:13:46 +0000 (10:13 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 27 Jun 2023 12:05:51 +0000 (14:05 +0200)
commitd47dbbd22fcb4fd26f7a9b66bd99dcf4518deea9
tree650de5d85cfd5d557bb629fa653ba669731e0318
parentcba529bc70be52bbc7796faea212fb694d2d25a4
ada: Fix incorrect handling of iterator specifications in recent change

Unlike for loop parameter specifications where it references an index, the
defining identifier references an element in them.

gcc/ada/

* sem_ch12.adb (Check_Generic_Actuals): Check the component type
of constants and variables of an array type.
(Copy_Generic_Node): Fix bogus handling of iterator
specifications.
gcc/ada/sem_ch12.adb