[Ada] Aspect CPU may depend on a discriminant of a task type
authorEd Schonberg <schonberg@adacore.com>
Tue, 23 Jul 2019 08:13:41 +0000 (08:13 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 23 Jul 2019 08:13:41 +0000 (08:13 +0000)
commit4e2a165210c07078ad1226ca3f0712a457a73d0e
tree7bd48f2678d74cb494675a4342b1571ef72c2740
parent67460d45757a79cdc91fdde1dc1b1a18e4aba6b2
[Ada] Aspect CPU may depend on a discriminant of a task type

2019-07-23  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations,
Freeze_Entity_Checks): Include Aspect_CPU with other aspects
whose expresssion may depend on a discriminant, and thus require
that components of the type be made visible.

gcc/testsuite/

* gnat.dg/task4.adb: New testcase.

From-SVN: r273726
gcc/ada/ChangeLog
gcc/ada/sem_ch13.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/task4.adb [new file with mode: 0644]