exp_ch3.adb (Freeze_Type): Generate an accessibility check which ensures that the...
authorHristian Kirtchev <kirtchev@adacore.com>
Mon, 29 Aug 2011 14:33:59 +0000 (14:33 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 29 Aug 2011 14:33:59 +0000 (16:33 +0200)
commitdfbcb149aa59ef88a254489d2c3aa9c105562490
treea07b86492502d6456c8681c157ab94574bcfd064
parent1df4f514fac3b17c52bb283fcc52daf3d19c26e7
exp_ch3.adb (Freeze_Type): Generate an accessibility check which ensures that the level of the subpool...

2011-08-29  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch3.adb (Freeze_Type): Generate an accessibility check which
ensures that the level of the subpool access type is not deeper than
that of the pool object.
* sem_util.adb (Object_Access_Level): Expand to handle defining
identifiers.
* sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the
subpool handle name of a rewritten allocator.

From-SVN: r178250
gcc/ada/ChangeLog
gcc/ada/exp_ch3.adb
gcc/ada/sem_res.adb
gcc/ada/sem_util.adb