2011-11-07 Yannick Moy <moy@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2011 16:22:28 +0000 (16:22 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2011 16:22:28 +0000 (16:22 +0000)
commit5216baa80511d06d2c52cf413c0c1522e7e899b8
treeda922a9e993691859131da7d8676ce000c6209da
parent54665c5ce2beefed5d8981dc2b5933fb83839cc1
2011-11-07  Yannick Moy  <moy@adacore.com>

* sem_util.adb (Unique_Entity): For a parameter on a subprogram
body that has a corresponding parameter on the subprogram
declaration, define the unique entity as being the declaration
one.

2011-11-07  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Analyze_Return_Type): In Ada 2012 mode, if the
return type of a function is the class-wide type of an incomplete
type T, T can be a Taft-amendment type and does not have to be
completed in the current private part.

2011-11-07  Ed Schonberg  <schonberg@adacore.com>

* aspects.ads (Inherited_Aspect): Map that indicates type aspects
that are inherited by default, and apply to the class-wide type
as well.
* aspects.adb (Find_Aspect): If the entity is class-wide and the
aspect is inherited, use the aspect of the specific type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181092 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/aspects.adb
gcc/ada/aspects.ads
gcc/ada/sem_ch6.adb
gcc/ada/sem_util.adb