https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77919
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sat Oct 29 20:22:36 2016 New Revision: 241681 URL: https://gcc.gnu.org/viewcvs?rev=241681&root=gcc&view=rev Log: PR rtl-optimization/77919 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing into memory if both modes are complex and their inner modes have the same precision. If the two modes are different complex modes, convert each part separately and generate a new CONCAT. * g++.dg/torture/pr77919-2.C: New test. Added: trunk/gcc/testsuite/g++.dg/torture/pr77919-2.C Modified: trunk/gcc/ChangeLog trunk/gcc/expr.c trunk/gcc/testsuite/ChangeLog