diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2017-05-02 09:08:28 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2017-05-02 11:08:28 +0200 |
commit | f934fd02a09a3f8ec105fb0b39708386cc202c5b (patch) | |
tree | 721168db3fe77367c153e4565edb240f83099491 /gcc/ada | |
parent | d6fd1f07ac1f21f0dd84202088102b7b77bcd104 (diff) | |
download | gcc-f934fd02a09a3f8ec105fb0b39708386cc202c5b.zip gcc-f934fd02a09a3f8ec105fb0b39708386cc202c5b.tar.gz gcc-f934fd02a09a3f8ec105fb0b39708386cc202c5b.tar.bz2 |
sem_ch3.adb (Build_Derived_Private_Type): If the parent type has discriminants...
2017-05-02 Eric Botcazou <ebotcazou@adacore.com>
* sem_ch3.adb (Build_Derived_Private_Type): If the parent type
has discriminants, do not override the Stored_Constraint list of
the full view of the derived type with that of the derived type.
From-SVN: r247481
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ada/sem_ch3.adb | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 77477d4..30cd0b1 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2017-05-02 Eric Botcazou <ebotcazou@adacore.com> + + * sem_ch3.adb (Build_Derived_Private_Type): If the parent type + has discriminants, do not override the Stored_Constraint list of + the full view of the derived type with that of the derived type. + 2017-05-02 Bob Duff <duff@adacore.com> * sem_attr.adb (Attribute_Enum_Rep): Disallow T'Enum_Rep. diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index b15ee3d..73c2f51 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -7797,9 +7797,6 @@ package body Sem_Ch3 is Set_Last_Entity (Der_Base, Last_Discr); Set_First_Entity (Derived_Type, First_Entity (Der_Base)); Set_Last_Entity (Derived_Type, Last_Entity (Der_Base)); - - Set_Stored_Constraint - (Full_Der, Stored_Constraint (Derived_Type)); end; end if; |