[Ada] Accept absolute address clause for array of UNC nominal subtype

Eric Botcazou botcazou@adacore.com
Sat Sep 12 10:38:29 GMT 2020


This changes the compiler to accept again absolute address clause for aliased 
array of unconstrained nominal subtype, instead of erroring out in this case.

Tested on x86_64-suse-linux, applied on the mainline.


2020-09-12  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Only give
	a warning for the overlay of an aliased array with an unconstrained
	nominal subtype if the address is absolute.

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


More information about the Gcc-patches mailing list