sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a nested access type...
commit70b3b953437e97d10bd71bd2f3191f6e326aabba
authorGary Dismukes <dismukes@adacore.com>
Thu, 5 Aug 2010 08:55:34 +0000 (5 08:55 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 5 Aug 2010 08:55:34 +0000 (5 10:55 +0200)
treee6a94c9aa69c2161abc54e756e831387f19785eb
parentd2f25cd144ad67f5b5b08a610e149aaeb4a75471
sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a nested access type whose designated type has...

2010-08-05  Gary Dismukes  <dismukes@adacore.com>

* sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
nested access type whose designated type has tasks or is a protected
object when the restrictions No_Task_Hierarchy or
No_Local_Protected_Objects apply. Add ??? comment.
* sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
type is not a library-level type and No_Local_Protected_Objects applies.
(Analyze_Task_Type): Give a warning when a task type is not a
library-level type and No_Task_Hierarchy applies.

From-SVN: r162902
gcc/ada/ChangeLog
gcc/ada/sem_ch4.adb
gcc/ada/sem_ch9.adb