utils2.c (build_binary_op): Make sure the element type is consistent.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 17 Oct 2009 11:05:35 +0000 (11:05 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 17 Oct 2009 11:05:35 +0000 (11:05 +0000)
commit3f273c8a53e786389658f14a0316e48a5e0de0b6
treefd8d2040380c07dc46f6c8584fa8fb12829b0e61
parent7fc6a96bed6d0b2511f56e246c5ca0c3058616aa
utils2.c (build_binary_op): Make sure the element type is consistent.

* gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
sure the element type is consistent.

From-SVN: r152934
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/slice8.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/slice8_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/slice8_pkg2.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/slice8_pkg3.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/slice8_pkg3.ads [new file with mode: 0644]