[Ada] Fix unnesting issues involving tasks
commitad8adad11752db7a98fce95d9090f4c6fbb849b7
authorEd Schonberg <schonberg@adacore.com>
Tue, 17 Jul 2018 08:05:29 +0000 (17 08:05 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 17 Jul 2018 08:05:29 +0000 (17 08:05 +0000)
tree2941ff6bac237308cf8c36980db098063b826c12
parent8d45ce773959d3e89c18790d9f5b48d526dcdd07
[Ada] Fix unnesting issues involving tasks

2018-07-17  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_util.adb (Enclosing_Subprogram): Handle properly entries, and
synchronized types that are completions of limited types or private
extensions.
(Scope_Within): Handle properly accept statements in task bodies.

From-SVN: r262769
gcc/ada/ChangeLog
gcc/ada/sem_util.adb