[Bug middle-end/82253] [6/7/8 Regression] ICE in convert_move, at expr.c:604

2017-11-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82253

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |6.5

[Bug middle-end/82253] [6/7/8 Regression] ICE in convert_move, at expr.c:604

2017-11-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82253

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek  ---
Created attachment 42684
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42684&action=edit
gcc8-pr82253.patch

Untested fix.

[Bug middle-end/82253] [6/7/8 Regression] ICE in convert_move, at expr.c:604

2017-11-23 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82253

--- Comment #4 from Jakub Jelinek  ---
Author: jakub
Date: Thu Nov 23 11:26:32 2017
New Revision: 255095

URL: https://gcc.gnu.org/viewcvs?rev=255095&root=gcc&view=rev
Log:
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.

Added:
trunk/gcc/testsuite/gfortran.dg/pr82253.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expr.c
trunk/gcc/testsuite/ChangeLog