https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85878
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 15 20:37:46 2018 New Revision: 261660 URL: https://gcc.gnu.org/viewcvs?rev=261660&root=gcc&view=rev Log: PR middle-end/85878 * expr.c (expand_assignment): Remove now redundant COMPLEX_MODE_P check from first store_expr, use to_mode instead of GET_MODE (to_rtx). Only call store_expr for halves if the mode is the same. * gfortran.fortran-torture/compile/pr85878.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.fortran-torture/compile/pr85878.f90 Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/expr.c branches/gcc-8-branch/gcc/testsuite/ChangeLog