]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix Enclosing_Subprogram for protected entries and task entries
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2018 08:06:55 +0000 (08:06 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2018 08:06:55 +0000 (08:06 +0000)
commit6d4252a36fe0e12dd41d9b23721c8b52a013a3e7
tree0fcc14e6808f8c572ba618866885b20f17d5eaab
parent001d55a8092356238d60760b1ad28150c23e5f11
[Ada] Fix Enclosing_Subprogram for protected entries and task entries

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

gcc/ada/

* sem_util.adb (Enclosing_Subprogram): Protected entries and task
entries must be treated separately: task entries are within the
enclosing subprogram of the task type, while protected entries are
transformed into the corresponding Protected_Body_Subprogram, which is
the enclosing_subprogram of any subprogram declared within the entry
body.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262778 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/sem_util.adb