https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85878
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 15 20:36:38 2018 New Revision: 261659 URL: https://gcc.gnu.org/viewcvs?rev=261659&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: trunk/gcc/testsuite/gfortran.fortran-torture/compile/pr85878.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/expr.c trunk/gcc/testsuite/ChangeLog