Fix the error message pointing to the Ada reference section on mixed
iterated component association being forbidden. Remove useless loop.
gcc/ada/
* sem_aggr.adb (Resolve_Array_Aggregate): Fix ARM reference.
Remove useless loop.
or else No (Iterator_Specification (Assoc))
then
Error_Msg_N ("mixed iterated component association"
- & " (RM 4.4.3 (17.1/5))",
+ & " (RM 4.3.3 (17.1/5))",
Assoc);
return False;
end if;
and then Present (Iterator_Specification (Assoc))
then
Error_Msg_N ("mixed iterated component association"
- & " (RM 4.4.3 (17.1/5))",
+ & " (RM 4.3.3 (17.1/5))",
Assoc);
return False;
end if;
Next (Assoc);
end loop;
- while Present (Assoc) loop
- Next (Assoc);
- end loop;
end if;
Assoc := First (Component_Associations (N));