Fix internal error on chain of constants with -gnatc
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 11 Nov 2020 13:39:32 +0000 (14:39 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 11 Nov 2020 13:39:32 +0000 (14:39 +0100)
commit1c91516aeb8362696786e17f83d8366de9a31f81
tree43452252ea167c6da351f0798b0b5909dac0d568
parent1f8fc1f458c4a66618c35d8e292fff6e9dce9f12
Fix internal error on chain of constants with -gnatc

gcc/ada/ChangeLog:
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: In case
the constant is not being defined, get the expression in type
annotation mode only if its type is elementary.
gcc/ada/gcc-interface/decl.c