sem_ch3.adb (Check_Nonoverridable_Aspects): New procedure within Analyze_Full_Type_...
authorEd Schonberg <schonberg@adacore.com>
Tue, 20 Oct 2015 09:40:24 +0000 (09:40 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 20 Oct 2015 09:40:24 +0000 (11:40 +0200)
commitb8a1821614cbf7e5c117bf0a7a215e3c3a81f8c3
treef18fb1840f423106114e1684348a5d6f055af675
parentd9147bb633645dc2e3844eee2d61217de5544a98
sem_ch3.adb (Check_Nonoverridable_Aspects): New procedure within Analyze_Full_Type_ Declaration...

2015-10-20  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Check_Nonoverridable_Aspects): New procedure within
Analyze_Full_Type_ Declaration, used to apply legality rules in
13,1,1 (18.3.3) concerning aspects that cannot be overridden in
a type extension.
(Check_Duplicate_Aspects): It is not legal to specify the
Implicit_Dereference aspect on a full view if partial view has
known discriminants.
* sem_ch13.adb (Analyze_Aspect_Implicit_Dereference): Verify that
the specification of the aspect on a derived type confirms the
value of the inherited one.
* sem_util.adb (Reference_Discriminant): Return empty if none
specified.

From-SVN: r229026
gcc/ada/ChangeLog
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_util.adb