a-cidlli.ads, [...] (Empty_Vector, [...]): Move this object declaration after freezin...
authorJavier Miranda <miranda@adacore.com>
Wed, 6 Jun 2007 10:52:10 +0000 (12:52 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 6 Jun 2007 10:52:10 +0000 (12:52 +0200)
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

gcc/ada/a-cdlili.ads
gcc/ada/a-cidlli.ads
gcc/ada/a-cohama.ads
gcc/ada/a-coinve.ads
gcc/ada/a-convec.ads

index c5d81f78532dc51c2f7df1fcb318157397f77f0a..06603cb054162a131f4b08f265addfd0530d6e89 100644 (file)
@@ -243,8 +243,6 @@ private
 
    for List'Write use Write;
 
-   Empty_List : constant List := (Controlled with null, null, 0, 0, 0);
-
    type List_Access is access constant List;
    for List_Access'Storage_Size use 0;
 
@@ -266,6 +264,8 @@ private
 
    for Cursor'Write use Write;
 
+   Empty_List : constant List := (Controlled with null, null, 0, 0, 0);
+
    No_Element : constant Cursor := Cursor'(null, null);
 
 end Ada.Containers.Doubly_Linked_Lists;
index ff354ccf1e28232f320d2b80fc157a8b6cbfae76..178709e29318a2f6c70e9012aee64fec17a10b0e 100644 (file)
@@ -236,8 +236,6 @@ private
 
    for List'Write use Write;
 
-   Empty_List : constant List := List'(Controlled with null, null, 0, 0, 0);
-
    type List_Access is access constant List;
    for List_Access'Storage_Size use 0;
 
@@ -259,6 +257,8 @@ private
 
    for Cursor'Write use Write;
 
+   Empty_List : constant List := List'(Controlled with null, null, 0, 0, 0);
+
    No_Element : constant Cursor := Cursor'(null, null);
 
 end Ada.Containers.Indefinite_Doubly_Linked_Lists;
index a0bbad4e955b9aedcc4738392c748180a537882c..d03d741a74b4887cb7ebe25209d9d7a89dde4c12 100644 (file)
@@ -203,8 +203,6 @@ private
 
    for Map'Read use Read;
 
-   Empty_Map : constant Map := (Controlled with HT => (null, 0, 0, 0));
-
    type Map_Access is access constant Map;
    for Map_Access'Storage_Size use 0;
 
@@ -226,6 +224,8 @@ private
 
    for Cursor'Write use Write;
 
+   Empty_Map : constant Map := (Controlled with HT => (null, 0, 0, 0));
+
    No_Element : constant Cursor := (Container => null, Node => null);
 
 end Ada.Containers.Hashed_Maps;
index 317dc75366e2c8c51bd3b4b2f23fd4cec1371206..0bfbd42dc396e59df6569238016ff037db3d49a6 100644 (file)
@@ -337,8 +337,6 @@ private
 
    for Vector'Read use Read;
 
-   Empty_Vector : constant Vector := (Controlled with null, No_Index, 0, 0);
-
    type Vector_Access is access constant Vector;
    for Vector_Access'Storage_Size use 0;
 
@@ -359,6 +357,8 @@ private
 
    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);
 
 end Ada.Containers.Indefinite_Vectors;
index bceea179995fda90ffc78c7907bcd8dcca2d7bad..dbb3cc4fac1bd80fc4701ed211c98f2785031dba 100644 (file)
@@ -345,8 +345,6 @@ private
 
    for Vector'Read use Read;
 
-   Empty_Vector : constant Vector := (Controlled with null, No_Index, 0, 0);
-
    type Vector_Access is access constant Vector;
    for Vector_Access'Storage_Size use 0;
 
@@ -367,6 +365,8 @@ private
 
    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);
 
 end Ada.Containers.Vectors;