utils2.c (find_common_type): Do not return the LHS type if it's an array with non...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 10 Oct 2016 09:46:10 +0000 (09:46 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 10 Oct 2016 09:46:10 +0000 (09:46 +0000)
commit036a2fa23eae8f57d860bb5e0faf2551e5f3fed4
tree0bdeb9985c2e7e3119a0865ef5daca84503aaaac
parent55cfd746c7d6e262d01a3cb8d5f32ebc8dceffbc
utils2.c (find_common_type): Do not return the LHS type if it's an array with non-constant lower bound and...

* gcc-interface/utils2.c (find_common_type): Do not return the LHS type
if it's an array with non-constant lower bound and the RHS type is an
array with a constant one.

From-SVN: r240913
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/inline13.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline13.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline13_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/inline13_pkg.ads [new file with mode: 0644]