[Ada] Missing accessibility error on object in type conversion
authorJustin Squirek <squirek@adacore.com>
Thu, 12 Mar 2020 15:36:33 +0000 (11:36 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 11 Jun 2020 09:53:33 +0000 (05:53 -0400)
commitafb885445f8de9eb4f62e9e647d976202a321850
treec39a7d0eccd7d8492a1277c5984276197175fac0
parent57f57ad106d93f469ef881784b976eefc3d29a00
[Ada] Missing accessibility error on object in type conversion

2020-06-11  Justin Squirek  <squirek@adacore.com>

gcc/ada/

* sem_util.adb (Expand_N_Attribute_Reference): Use original
nodes where required to avoid looking at the expanded tree.
gcc/ada/sem_util.adb