]> git.ipfire.org Git - thirdparty/gcc.git/commit
sem_ch3.adb (Access_Subprogram_Declaration): If the return type is incomplete...
authorEd Schonberg <schonberg@adacore.com>
Wed, 6 Aug 2008 09:35:17 +0000 (11:35 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 6 Aug 2008 09:35:17 +0000 (11:35 +0200)
commit49d8b8028170af3242cb705fe2fabf46697843c1
tree786dc57f45902b0dbd0b3d295c5241210bb656d9
parent66aa7643363c7c7b6246649b35f5e6a6b7948c6b
sem_ch3.adb (Access_Subprogram_Declaration): If the return type is incomplete...

2008-08-06  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
incomplete, add the access_to_subprogram type to the list of private
dependents only if the incomplete type will be completed in the current
scope.
(Build_Discriminant_Constraints): If the type of the discriminant is
access_to_variable, reject a constraint that is access_to_constant.

From-SVN: r138784
gcc/ada/sem_ch3.adb