[Ada] Missing accessibility error on object in type conversion

Pierre-Marie de Rodat derodat@adacore.com
Thu Jun 11 10:00:09 GMT 2020


This patch corrects an issue whereby the compiler would incorrectly
calculate accessibility levels of objects within type conversions -
leading to potentially missing static and dynamic errors.

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

2020-06-11  Justin Squirek  <squirek@adacore.com>

gcc/ada/

	* sem_util.adb (Expand_N_Attribute_Reference): Use original
	nodes where required to avoid looking at the expanded tree.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 6682 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200611/d8da0e8b/attachment-0001.bin>


More information about the Gcc-patches mailing list