sem_ch3.adb (Analyze_Subtype_Declaration): if an incomplete type is tagged, so is...
authorEd Schonberg <schonberg@adacore.com>
Tue, 12 Jun 2012 10:34:33 +0000 (10:34 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 12 Jun 2012 10:34:33 +0000 (12:34 +0200)
commit967e927f1b8c1971e4bad6b3327ca984cb18083f
treef140f24bc213ee097fe7069f1e32b700943da3eb
parent02f588343104177827aeb428ea9fca6e55910ef3
sem_ch3.adb (Analyze_Subtype_Declaration): if an incomplete type is tagged, so is a subtype of it.

2012-06-12  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Analyze_Subtype_Declaration): if an incomplete
type is tagged, so is a subtype of it.
* sem_ch12.adb (Validate_Actual_Subprogram): implement AI05-0296,
concerning freeze rules in the presence of formal incomplete
types: a formal abstract subprogram cannot have an incomplete
controlling type, and the profile of the actual subprogram does
not freeze if it includes an incomplete untagged type.

From-SVN: r188442
gcc/ada/ChangeLog
gcc/ada/sem_ch12.adb
gcc/ada/sem_ch3.adb