[Ada] Fix expansion of attribute Priority
commitc7dd10e8af0e71a901af1f0b06d2216d5e31d586
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 30 Oct 2020 23:01:43 +0000 (31 00:01 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 5 Sep 2022 07:21:00 +0000 (5 09:21 +0200)
treeced1d63e8a307a6e9052f42135fcd081a159476a
parent2af82bc2eb9b75d6f10aa0f48ad9489a8798416a
[Ada] Fix expansion of attribute Priority

gcc/ada/

* exp_attr.adb (Expand_N_Attribute_Reference): Fix detection of the
enclosing protected type and of the enclosing protected subprogram.
* exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
gcc/ada/exp_attr.adb
gcc/ada/exp_ch5.adb