[Ada] Fix scope computation for entry bodies and accept alternatives
authorEd Schonberg <schonberg@adacore.com>
Tue, 21 Aug 2018 14:45:04 +0000 (14:45 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 21 Aug 2018 14:45:04 +0000 (14:45 +0000)
commitc36d21ee42349ea0e8565daa2013ba4f193d4ffe
treef5f9958a741673e51b11ab7ae28b494f84f3aa38
parent3f99a611cab3ff6f5dab0e99ec2cf3a89b99cb1b
[Ada] Fix scope computation for entry bodies and accept alternatives

2018-08-21  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* exp_ch9.adb (Reset_Scopes): Do not recurse into type
declarations when resetting the scope of entities declared the
procedures generated for entry bodies and accept alternatives.
Use the entity of the procedure declaration, not its body, as
the new scope.

From-SVN: r263713
gcc/ada/ChangeLog
gcc/ada/exp_ch9.adb