]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix detection of slices that denote the same object
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 9 Mar 2021 21:22:19 +0000 (22:22 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 17 Jun 2021 14:32:13 +0000 (10:32 -0400)
commit3447d9e49e33199b4c5c0fe16e272e3ecfd36275
tree35add57edf3e0a7a3166373e8e7dbee81c9ea2b1
parenta6d844cd860880a9d1f028876085a8d1230819b1
[Ada] Fix detection of slices that denote the same object

gcc/ada/

* sem_util.adb (Denotes_Same_Object): Call Get_Index_Bounds with
the range of a slice object, not its type.
gcc/ada/sem_util.adb