Commit 7d2e68b3 by Javier Miranda Committed by Arnaud Charlet

a-cidlli.ads, [...] (Empty_Vector, [...]): Move this object declaration after…

a-cidlli.ads, [...] (Empty_Vector, [...]): Move this object declaration after freezing point of all its associated tagged...

2007-04-20  Javier Miranda  <miranda@adacore.com>

	* a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
	a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
	declaration after freezing point of all its associated tagged types;
	otherwise such types are frozen too early.

From-SVN: r125477
parent d579fabd
...@@ -243,8 +243,6 @@ private ...@@ -243,8 +243,6 @@ private
for List'Write use Write; for List'Write use Write;
Empty_List : constant List := (Controlled with null, null, 0, 0, 0);
type List_Access is access constant List; type List_Access is access constant List;
for List_Access'Storage_Size use 0; for List_Access'Storage_Size use 0;
...@@ -266,6 +264,8 @@ private ...@@ -266,6 +264,8 @@ private
for Cursor'Write use Write; for Cursor'Write use Write;
Empty_List : constant List := (Controlled with null, null, 0, 0, 0);
No_Element : constant Cursor := Cursor'(null, null); No_Element : constant Cursor := Cursor'(null, null);
end Ada.Containers.Doubly_Linked_Lists; end Ada.Containers.Doubly_Linked_Lists;
...@@ -236,8 +236,6 @@ private ...@@ -236,8 +236,6 @@ private
for List'Write use Write; for List'Write use Write;
Empty_List : constant List := List'(Controlled with null, null, 0, 0, 0);
type List_Access is access constant List; type List_Access is access constant List;
for List_Access'Storage_Size use 0; for List_Access'Storage_Size use 0;
...@@ -259,6 +257,8 @@ private ...@@ -259,6 +257,8 @@ private
for Cursor'Write use Write; for Cursor'Write use Write;
Empty_List : constant List := List'(Controlled with null, null, 0, 0, 0);
No_Element : constant Cursor := Cursor'(null, null); No_Element : constant Cursor := Cursor'(null, null);
end Ada.Containers.Indefinite_Doubly_Linked_Lists; end Ada.Containers.Indefinite_Doubly_Linked_Lists;
...@@ -203,8 +203,6 @@ private ...@@ -203,8 +203,6 @@ private
for Map'Read use Read; for Map'Read use Read;
Empty_Map : constant Map := (Controlled with HT => (null, 0, 0, 0));
type Map_Access is access constant Map; type Map_Access is access constant Map;
for Map_Access'Storage_Size use 0; for Map_Access'Storage_Size use 0;
...@@ -226,6 +224,8 @@ private ...@@ -226,6 +224,8 @@ private
for Cursor'Write use Write; for Cursor'Write use Write;
Empty_Map : constant Map := (Controlled with HT => (null, 0, 0, 0));
No_Element : constant Cursor := (Container => null, Node => null); No_Element : constant Cursor := (Container => null, Node => null);
end Ada.Containers.Hashed_Maps; end Ada.Containers.Hashed_Maps;
...@@ -337,8 +337,6 @@ private ...@@ -337,8 +337,6 @@ private
for Vector'Read use Read; for Vector'Read use Read;
Empty_Vector : constant Vector := (Controlled with null, No_Index, 0, 0);
type Vector_Access is access constant Vector; type Vector_Access is access constant Vector;
for Vector_Access'Storage_Size use 0; for Vector_Access'Storage_Size use 0;
...@@ -359,6 +357,8 @@ private ...@@ -359,6 +357,8 @@ private
for Cursor'Read use Read; for Cursor'Read use Read;
Empty_Vector : constant Vector := (Controlled with null, No_Index, 0, 0);
No_Element : constant Cursor := Cursor'(null, Index_Type'First); No_Element : constant Cursor := Cursor'(null, Index_Type'First);
end Ada.Containers.Indefinite_Vectors; end Ada.Containers.Indefinite_Vectors;
...@@ -345,8 +345,6 @@ private ...@@ -345,8 +345,6 @@ private
for Vector'Read use Read; for Vector'Read use Read;
Empty_Vector : constant Vector := (Controlled with null, No_Index, 0, 0);
type Vector_Access is access constant Vector; type Vector_Access is access constant Vector;
for Vector_Access'Storage_Size use 0; for Vector_Access'Storage_Size use 0;
...@@ -367,6 +365,8 @@ private ...@@ -367,6 +365,8 @@ private
for Cursor'Read use Read; for Cursor'Read use Read;
Empty_Vector : constant Vector := (Controlled with null, No_Index, 0, 0);
No_Element : constant Cursor := Cursor'(null, Index_Type'First); No_Element : constant Cursor := Cursor'(null, Index_Type'First);
end Ada.Containers.Vectors; end Ada.Containers.Vectors;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment