[Ada] Fix evaluation of Enum_Rep applied to imported constant
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 7 May 2020 12:08:07 +0000 (14:08 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 6 Jul 2020 11:35:06 +0000 (07:35 -0400)
commitf0e6256fd399418047772ebc72d2025938f7ccd8
tree43f84eefdbefac76cdfea12bd8773d57ead67909
parent8f892a98cc4599b7562e041a53ecfa920c72551c
[Ada] Fix evaluation of Enum_Rep applied to imported constant

gcc/ada/

* sem_attr.adb (Eval_Attribute): Check if constant has an
initialization expression.
gcc/ada/sem_attr.adb