The resolution of overloading for the optional Last and Previous primitives
of an Iterable aspect should be done like for other primitives.
gcc/ada/ChangeLog:
* sem_ch13.adb (Resolve_Iterable_Operation): Handle Previous and Last
like Next and First.
then
F1 := First_Formal (It.Nam);
- if Nam = Name_First then
+ if Nam in Name_First | Name_Last then
if Etype (It.Nam) = Cursor
and then No (Next_Formal (F1))
then
exit;
end if;
- elsif Nam = Name_Next then
+ elsif Nam in Name_Next | Name_Previous then
F2 := Next_Formal (F1);
if Present (F2)