Fix tree sharing issue with slices
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 9 May 2020 20:56:14 +0000 (22:56 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 9 May 2020 20:56:14 +0000 (22:56 +0200)
commit2448ee85a89f313e48ee40eaed0d645c4c027944
tree4359ad4a72a81748938f787b46ccf8fd78e6c9e3
parente92f85c792c8c5e7846ba2bc7f5e24f08dcdfece
Fix tree sharing issue with slices

This can happen because we build an array type on the fly in case there
is an apparent type inconsistency in the construct.

* gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Use
build_nonshared_array_type to build the common type and declare it.
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils2.c