exp_ch6.adb (Expand_Protected_Subprogram_Call): Add guard to better detect call withi...
authorEd Schonberg <schonberg@adacore.com>
Fri, 6 Jan 2017 11:24:02 +0000 (11:24 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 6 Jan 2017 11:24:02 +0000 (12:24 +0100)
commit9ca67d3f24e7386cf89c2ce2095677cd0e4c87de
tree7f03c7a1cc81cdacb953ca528df650d4eb61fde6
parent5e127570e2871666c51d6c27a05cc3297030a823
exp_ch6.adb (Expand_Protected_Subprogram_Call): Add guard to better detect call within an entry_wrapper.

2017-01-06  Ed Schonberg  <schonberg@adacore.com>

* exp_ch6.adb (Expand_Protected_Subprogram_Call): Add guard to
better detect call within an entry_wrapper.
* sem_res.adb (Resolve_Call): A protected call within an
entity_wrapper is analyzed in the context of the protected
object but corresponds to a pre-analysis and is not an access
before elaboration.
* sem_attr.adb: Minor reformatting.

From-SVN: r244139
gcc/ada/ChangeLog
gcc/ada/exp_ch6.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_res.adb