]> git.ipfire.org Git - thirdparty/gcc.git/commit
sem_ch3.adb (Access_Subprogram_Definition): Additional checks on illegal uses of...
authorEd Schonberg <schonberg@adacore.com>
Fri, 17 Apr 2009 09:36:05 +0000 (11:36 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 17 Apr 2009 09:36:05 +0000 (11:36 +0200)
commitcec29135594f16fbbeafdb0ce26a65613c4d0567
treeb1f17f1be16920dc495a705179f177a3e4872b86
parent618fb570b9d2a668d6d217ad486379ad0e1370b6
sem_ch3.adb (Access_Subprogram_Definition): Additional checks on illegal uses of incomplete types in formal parts and...

2009-04-17  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
illegal uses of incomplete types in formal parts and return types.

* sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
access to subprograms.

* sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
Taft-amendment types as the return type of an access_to_function type.

* freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
type for access_to_subprograms. The check is performed on package exit.

From-SVN: r146229
gcc/ada/freeze.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch6.adb
gcc/ada/sem_ch7.adb