[Ada] Fix detection of valid renamings for overlapping checks

Pierre-Marie de Rodat derodat@adacore.com
Thu Jun 17 14:33:11 GMT 2021

Checks for overlapping actuals only apply to "valid renamings", i.e.
renamings whose renamed object_name contains no references to non-static
expressions; RM 6.4.1 (6.11/3). Such references can appear both in
indexed components and slices.

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


	* sem_util.adb (Is_Valid_Renaming): Check not only indexed
	components, but slices too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1536 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210617/6bc696d2/attachment-0001.bin>

More information about the Gcc-patches mailing list