sem_ch12.adb (Check_Generic_Actuals): New predicate Denotes_Previous_Actual...
authorEd Schonberg <schonber@gnat.com>
Mon, 4 Oct 2004 14:57:11 +0000 (16:57 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 4 Oct 2004 14:57:11 +0000 (16:57 +0200)
commit0b525beee7461b1713595233bc68edc4ef8ad6a7
tree5fca5058bdc74419e06e6b1898e0b4753f29b513
parent27ad9660a8011119222121eb67aabb099cc43e1a
sem_ch12.adb (Check_Generic_Actuals): New predicate Denotes_Previous_Actual...

2004-10-04  Ed Schonberg  <schonberg@gnat.com>

* sem_ch12.adb (Check_Generic_Actuals): New predicate
Denotes_Previous_Actual, to handle properly the case of a private
actual that is also the component type of a subsequent array actual.
The visibility status of the first actual is not affected when the
second is installed.
(Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
make fully recursive the treatment of formals of packages declared
with a box.
(Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
the above on exit from an instantiation.
(Denotes_Formal_Package): When called from Restore_Private_Views, ignore
current instantiation which is now complete.
(Analyze_Package_Instantiation): No instantiated body is needed if the
main unit is generic. Efficient, and avoid anomalies when a instance
appears in a package accessed through rtsfind.

From-SVN: r88496
gcc/ada/ChangeLog
gcc/ada/sem_ch12.adb