2015-05-21 Robert Dewar <dewar@adacore.com>
commit9faf301187a2ac5276a2dbddcc6cb54a1809b551
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 May 2015 08:52:17 +0000 (22 08:52 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 May 2015 08:52:17 +0000 (22 08:52 +0000)
tree2e94024e05c74b0b303ac3cd026f30894f78ab05
parent588ee06b8a7235d805b44a397015788f22ac1f04
2015-05-21  Robert Dewar  <dewar@adacore.com>

* exp_util.adb (Activate_Atomic_Synchronization): Do not set
Atomic_Sync_Required for an object renaming declaration.
* sem_ch8.adb (Analyze_Object_Renaming): Copy Is_Atomic and
Is_Independent to renaming object.

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

* sem_ch5.adb (Analyze_Iterator_Specification): Diagnose
various illegalities in iterators over arrays and containers:
a) New function Get_Cursor_Type, to verify that the cursor is
not a limited type at the point of iteration.
b) If the container is a constant, an element_iterator is illegal
if the container type does not have a Constant_Indexing aspect.
c) If the iterate function has an in-out controlling parameter,
the container cannot be a constant object.
d) Reject additional cases of iterators over a
discriminant-dependent component of a mutable object.

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