s-ficobl.ads: Declare AFCB as a tagged incomplete type...
authorEd Schonberg <schonberg@adacore.com>
Tue, 14 Aug 2007 08:49:26 +0000 (10:49 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 14 Aug 2007 08:49:26 +0000 (10:49 +0200)
2007-08-14  Ed Schonberg  <schonberg@adacore.com>

* s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
obsolescent warning on application of 'Class to an incomplete type.

* s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
prevent obsolescent warning on application of 'Class to an incomplete
type.

From-SVN: r127460

gcc/ada/s-ficobl.ads
gcc/ada/s-finroo.ads

index 7c1e1c45024cda80651f5906d2fa84879074d2af..d0a08054c894a545020ada6d129469485b7fb80b 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---            Copyright (C) 1992-2006, Free Software Foundation, Inc.       --
+--            Copyright (C) 1992-2007, Free Software Foundation, Inc.       --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -78,7 +78,7 @@ package System.File_Control_Block is
    --  stream with the semantics specified in the RM for file sharing. All
    --  files opened with "shared=no" will have their own stream.
 
-   type AFCB;
+   type AFCB is tagged;
    type AFCB_Ptr is access all AFCB'Class;
 
    type AFCB is abstract new Ada.Streams.Root_Stream_Type with record
index 3bd1c7507fd4b95349c32e2b9ff468e73d4588a5..79f403c5fc6bb5b5726c9e1bb0e51aaa621813fb 100644 (file)
@@ -39,7 +39,7 @@ with Ada.Unchecked_Conversion;
 package System.Finalization_Root is
    pragma Preelaborate;
 
-   type Root_Controlled;
+   type Root_Controlled is tagged;
 
    type Finalizable_Ptr is access all Root_Controlled'Class;