PR middle-end/82253
commit71d9051227d1d9cc1b7b24f9b4624a8945ef77bb
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Nov 2017 11:26:32 +0000 (23 11:26 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Nov 2017 11:26:32 +0000 (23 11:26 +0000)
tree3dd6d215d0749639bcd61bbd8c74072b2c907f19
parentbae31501f6b32458061bbc897ef48cbbcd82a1ca
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255095 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr82253.f90 [new file with mode: 0644]