[Ada] Fix wrong access check with access-to-unconstrained-array

Pierre-Marie de Rodat derodat@adacore.com
Wed Jul 13 10:02:59 GMT 2022


The current implementation may create dangling references from a superset
of the alias set of the dummy pointer-to-array type when it exists.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Array_Type>: Save
	and restore the alias set of the dummy pointer-to-array type.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 2718 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20220713/0c6f6b77/attachment-0001.bin>


More information about the Gcc-patches mailing list