sem_ch10.adb (Check_Private_Child_Unit): A non-private library level subprogram body...
authorThomas Quinot <quinot@adacore.com>
Thu, 13 Dec 2007 10:29:38 +0000 (11:29 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 13 Dec 2007 10:29:38 +0000 (11:29 +0100)
commite116d16c19904addc54c93b3c5b272fb414c2f99
tree1ced1ee74452fbb0a5d7f3dd28fda1ea8db636e8
parentb26b5a8f52b45dcbe796cb472997b844b5b22c5d
sem_ch10.adb (Check_Private_Child_Unit): A non-private library level subprogram body that acts as its own spec may not...

2007-12-06  Thomas Quinot  <quinot@adacore.com>
    Ed Schonberg  <schonberg@adacore.com>

* sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
subprogram body that acts as its own spec may not have a non-private
WITH clause on a private sibling.
(Build_Unit_Name): If the parent unit in the name in a with_clause on a
child unit is a renaming, create an implicit with_clause on that
parent, and not on the unit it renames, to prevent visibility errors
in the current unit.

From-SVN: r130850
gcc/ada/sem_ch10.adb