sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
authorRobert Dewar <dewar@adacore.com>
Wed, 6 Jun 2007 10:44:24 +0000 (12:44 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 6 Jun 2007 10:44:24 +0000 (12:44 +0200)
commit495d6dd6da24802c0c1aaacb7ea77fa7ccbf1a20
tree09521dd48625650a14a9d01f2817d323df8ff41c
parentb7d1f17ff2605ae0dda0f3568136ff76cfcb879e
sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body

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

* sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
(Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
overriding of an inherited private subprogram now there is no need to
inherit its dispatching slot and reduce the size of the dispatch table.
Set_All_DT_Position now ensures that the same slot is now assigned to
both entities. This is required to statically build the dispatch table.
(Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
of calling Set_All_DT_Position to re-evaluate the position of the
entries in the dispatch table. Such reevaluation is not desired if
the tagged type is already frozen.

From-SVN: r125452
gcc/ada/sem_ch7.adb