[Ada] Fix internal error on chain of constants with -gnatc

Eric Botcazou botcazou@adacore.com
Wed Nov 11 13:40:50 GMT 2020


This is a rather obscure case not really worth commenting. :-)

Tested on x86-64/Linux, applied on the mainline.


2020-11-11  Eric Botcazou  <ebotcazou@adacore.com>

	* 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.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 1889 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201111/d44e844c/attachment.bin>


More information about the Gcc-patches mailing list