2015-10-20 Ed Schonberg <schonberg@adacore.com>
commit1ff43c00b1a022b2ba2cd0beba4cae3807e41c7f
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Oct 2015 09:40:24 +0000 (20 09:40 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Oct 2015 09:40:24 +0000 (20 09:40 +0000)
treef18fb1840f423106114e1684348a5d6f055af675
parent0b8bd25db0f38cff528f1a19e60aeb825e118e3f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229026 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_util.adb