2008-08-04 Ed Schonberg <schonberg@adacore.com>
authorEd Schonberg <schonberg@adacore.com>
Mon, 4 Aug 2008 18:50:45 +0000 (20:50 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 4 Aug 2008 18:50:45 +0000 (20:50 +0200)
commitcd1c668b50e5fa0041d6d6267e884914e0aa9d94
treebb7c07914ca27a6a2d8326c20534a48711e867a7
parent94eefd2ef77020f87a7787c294b6b01c3e67450a
2008-08-04  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb:
(Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
anonymous access to protected subprogram that is the return type of the
specification of a subprogram body.

* sem_ch6.adb:
(Analyze_Subprogram_Body): if the return type is an anonymous access to
subprogram, freeze it now to prevent access anomalies in the back-end.

* exp_ch9.adb: Minor code cleanup.
Make sure that new declarations are inserted into the tree before
analysis (from code reading).

From-SVN: r138650
gcc/ada/exp_ch9.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch6.adb