[Ada] Crash in expression function defined in protected object
authorJavier Miranda <miranda@adacore.com>
Mon, 6 Jul 2020 12:04:01 +0000 (08:04 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 19 Oct 2020 09:53:36 +0000 (05:53 -0400)
commitb9d685922c7d960ab5b0beae348cfb37df08d115
tree2e915c0693d2b1d09285725eeb0b62a476e11271
parentc95f21001dc9b7dbe717ef84924220192c7b48ae
[Ada] Crash in expression function defined in protected object

gcc/ada/

* sem_ch8.adb (Find_Direct_Name): Do not trust in the decoration
of the Entity attribute in constants associated with
discriminals of protected types.
gcc/ada/sem_ch8.adb