forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* decl.c (same_discriminant_p): New static function. (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent subtype and we have discriminants, fix up the COMPONENT_REFs for the discriminants to make them reference the corresponding fields of the parent subtype after it has been built. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116981 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
ebotcazou
committed
Sep 15, 2006
1 parent
066cf27
commit 6828c3b
Showing
5 changed files
with
93 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
2006-09-15 Eric Botcazou <[email protected]> | ||
|
||
PR ada/15802 | ||
* decl.c (same_discriminant_p): New static function. | ||
(gnat_to_gnu_entity) <E_Record_Type>: When there is a parent | ||
subtype and we have discriminants, fix up the COMPONENT_REFs | ||
for the discriminants to make them reference the corresponding | ||
fields of the parent subtype after it has been built. | ||
|
||
2006-09-15 Roger Sayle <[email protected]> | ||
|
||
PR ada/18817 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
2006-09-15 Eric Botcazou <[email protected]> | ||
|
||
* gnat.dg/specs/double_record_extension1.ads: New test. | ||
* gnat.dg/specs/double_record_extension2.ads: Likewise. | ||
|
||
2006-09-15 Paul Thomas <[email protected]> | ||
|
||
PR fortran/29051 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package double_record_extension1 is | ||
|
||
type T1(n: natural) is tagged record | ||
s1: string (1..n); | ||
end record; | ||
type T2(j,k: natural) is new T1(j) with record | ||
s2: string (1..k); | ||
end record; | ||
type T3 is new T2 (10, 10) with null record; | ||
|
||
end double_record_extension1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package double_record_extension2 is | ||
|
||
type Base_Message_Type (Num_Bytes : Positive) is tagged record | ||
Data_Block : String (1..Num_Bytes); | ||
end record; | ||
|
||
type Extended_Message_Type (Num_Bytes1 : Positive; Num_Bytes2 : Positive) is new Base_Message_Type (Num_Bytes1) with record | ||
A: String (1..Num_Bytes2); | ||
end record; | ||
|
||
type Final_Message_Type is new Extended_Message_Type with record | ||
B : Integer; | ||
end record; | ||
|
||
end double_record_extension2; |