aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorThomas Quinot <quinot@adacore.com>2005-03-18 12:51:13 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2005-03-18 12:51:13 +0100
commit5b846f5abbf88a936869bd31f8d154e88790529e (patch)
tree515455cb5573d3b3ff3b7f087b0e7cc209496853 /gcc/ada
parentbac0819a21796b902f9c975c6ed03bde4dc65ad3 (diff)
downloadgcc-5b846f5abbf88a936869bd31f8d154e88790529e.zip
gcc-5b846f5abbf88a936869bd31f8d154e88790529e.tar.gz
gcc-5b846f5abbf88a936869bd31f8d154e88790529e.tar.bz2
sem_ch13.adb (New_Stream_Function, [...]): For a tagged limited type, the TSS is a newly built renaming declaration...
2005-03-17 Thomas Quinot <quinot@adacore.com> * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a tagged limited type, the TSS is a newly built renaming declaration: insert it using Set_TSS, not Copy_TSS. From-SVN: r96673
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/sem_ch13.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb
index dbd1c7e..9eeec66 100644
--- a/gcc/ada/sem_ch13.adb
+++ b/gcc/ada/sem_ch13.adb
@@ -3373,7 +3373,7 @@ package body Sem_Ch13 is
Specification => Build_Spec,
Name => New_Reference_To (Subp, Loc));
- if Is_Tagged_Type (Ent) and then not Is_Limited_Type (Ent) then
+ if Is_Tagged_Type (Ent) then
Set_TSS (Base_Type (Ent), Subp_Id);
else
Insert_Action (N, Subp_Decl);
@@ -3451,7 +3451,7 @@ package body Sem_Ch13 is
Specification => Build_Spec,
Name => New_Reference_To (Subp, Loc));
- if Is_Tagged_Type (Ent) and then not Is_Limited_Type (Ent) then
+ if Is_Tagged_Type (Ent) then
Set_TSS (Base_Type (Ent), Subp_Id);
else
Insert_Action (N, Subp_Decl);