diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 23668f1bec56a32f27d591f2d1c16a934132a615..3fd3eb45f334fe9186f41372ca95a269d20c23ae 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -30768,7 +30768,8 @@ package body Sem_Util is -- array_component_association or of -- a container_element_associatiation. - if Nkind (Par) = N_Component_Association + if Nkind (Par) in N_Component_Association + | N_Iterated_Component_Association and then Trailer = Expression (Par) then -- determine whether Par is part of an array aggregate