sem_ch10.adb (Has_With_Clause): If the name of the with clause currently inspected...
authorHristian Kirtchev <kirtchev@adacore.com>
Thu, 16 Aug 2007 12:19:50 +0000 (14:19 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 16 Aug 2007 12:19:50 +0000 (14:19 +0200)
commit0d01a4abfbaeae96135e2c5383850d3a2ea66aa1
tree81c47bb8cecbb7784715c31f4a491b8546f92a98
parent4f6447c5c85cb0cd0462536c76d3b9c4e1c9b193
sem_ch10.adb (Has_With_Clause): If the name of the with clause currently inspected is a selected component...

2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch10.adb (Has_With_Clause): If the name of the with clause
currently inspected is a selected component, retrieve the entity of
its selector.
(Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
from the immediate ancestor of Main_Unit_Entity.
(Install_Limited_Withed_Unit): Do not install the limited view of
package P if P is reachable through an ancestor chain from package C
and C also has a with clause for P in its body.
(Has_Limited_With_Clause): New routine.
(Has_With_Clause): New routine.

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