sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent type we cannot inher...
authorJavier Miranda <miranda@adacore.com>
Fri, 17 Feb 2006 16:08:08 +0000 (17:08 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 17 Feb 2006 16:08:08 +0000 (17:08 +0100)
commit030d25f41343f0996b56368a54e609959428a0c6
tree52bd5a1a367bbc697e2060f4f05fb59a110fdf52
parent861f090ef3bdb37838d74515311e419ddb35b549
sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent type we cannot inherit the primitive operations...

2006-02-17  Javier Miranda  <miranda@adacore.com>
    Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
type we cannot inherit the primitive operations; we inherit the
Corresponding_Record_Type (which has the list of primitive operations).
(Check_Anonymous_Access_Types): When creating anonymous access types for
access components, use Rewrite in order to preserve the tree structure,
for ASIS use.
(Analyze_Object_Declaration): For limited types with access
discriminants with defaults initialized by an aggregate, obtain
subtype from aggregate as for other mutable types.
(Derived_Type_Declaration): If the derived type is a limited interface,
set the corresponding flag (Is_Limited_Record is not sufficient).

From-SVN: r111193
gcc/ada/sem_ch3.adb