re PR middle-end/82253 (ICE in convert_move, at expr.c:604)
authorJakub Jelinek <jakub@redhat.com>
Thu, 23 Nov 2017 11:26:32 +0000 (12:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 23 Nov 2017 11:26:32 +0000 (12:26 +0100)
commit2145b601d083b313197c0ef3bfbef1df8aa26479
tree3dd6d215d0749639bcd61bbd8c74072b2c907f19
parentf36a7f04f65f3e11e2c656e4171657acf59f3655
re PR middle-end/82253 (ICE in convert_move, at expr.c:604)

PR middle-end/82253
* expr.c (expand_assignment): For CONCAT to_rtx, complex type from and
bitpos/bitsize covering the whole destination, use store_expr only if
the complex mode is the same.  Otherwise, use expand_normal and if
it returns CONCAT, subreg each part separately instead of trying to
subreg the whole result.

* gfortran.dg/pr82253.f90: New test.

From-SVN: r255095
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr82253.f90 [new file with mode: 0644]