sem_ch13.adb (Check_Iterator_Functions): Emit error on Iterator aspect as well when...
authorEd Schonberg <schonberg@adacore.com>
Thu, 21 May 2015 10:47:34 +0000 (10:47 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 21 May 2015 10:47:34 +0000 (12:47 +0200)
commit4f2cae4a92d1135ededcecdffd84e1c4c394b083
treed355e609a4be7f52f44ac2ecd8388cd2acf59719
parentc8faa0f904f744afe9f2db4742216ea4c7e92e46
sem_ch13.adb (Check_Iterator_Functions): Emit error on Iterator aspect as well when indexing function is illegal.

2015-05-21  Ed Schonberg  <schonberg@adacore.com>

* sem_ch13.adb (Check_Iterator_Functions): Emit error on Iterator
aspect as well when indexing function is illegal.
(Valid_Default_Iterator): Handle properly somme illegal cases
to prevent compilation abandoned messages.
(Check_Primitive_Function): Verify that type and indexing function
are in the same scope.
* freeze.adb (Freeze_Record): Extend patch on the presence of
indexing aspects to aspect Default_Iterator.

From-SVN: r223475
gcc/ada/ChangeLog
gcc/ada/freeze.adb
gcc/ada/sem_ch13.adb