]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Spurious compilation error with repeated loop index
authorJavier Miranda <miranda@adacore.com>
Thu, 6 Feb 2025 09:40:57 +0000 (09:40 +0000)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 5 Jun 2025 13:39:51 +0000 (15:39 +0200)
commitd056ac5fce4cf6de698b4e1e4fe266e5ebbd0530
tree7b60f21e10bc734061b4e47c8bb8ab70caf3dab1
parent48a5910dde566180a0a0878651a78ccece89be45
ada: Spurious compilation error with repeated loop index

When multiple for-loop statements in the same scope use the
same index name to iterate through container elements, the
compiler reports a spurious error indicating a conflict
between index names.

gcc/ada/ChangeLog:

* exp_ch7.adb (Process_Object_Declaration): Avoid generating
duplicate names for master nodes.
gcc/ada/exp_ch7.adb