2015-05-12 Ed Schonberg <schonberg@adacore.com>
commit528630bb0693fbe4f23df74fea2f26a11894f7b6
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 May 2015 15:13:06 +0000 (12 15:13 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 May 2015 15:13:06 +0000 (12 15:13 +0000)
tree39882498817ea47051972a2f82d38d47671bef91
parentcf8fe84b1f9813f03e4b67f866d9f98adf72915b
2015-05-12  Ed Schonberg  <schonberg@adacore.com>

* sem_ch5.adb (Analyze_Iterator_Specifications): Additional
legality checks for array and container iterators:
a) The domain of iteration cannot be a component that depends
on discriminants of a mutable object. The check was recently
added for element iterators.
b) The cursor type cannot be a limited type at the point of the
iteration, because the cursor will be assigned to in the body
of the loop.

2015-05-12  Robert Dewar  <dewar@adacore.com>

* freeze.adb (Freeze_Record_Type): Make sure that if we have
aspect Iterator_Element, then we have either Constant_Indexing
or Variable_Indexing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223077 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/freeze.adb
gcc/ada/sem_ch5.adb