[Bug fortran/45081] [4.3 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-12-09 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45081

Tobias Burnus burnus at gcc dot gnu.org changed:

   What|Removed |Added

   Target Milestone|4.5.2   |4.3.6
Summary|[4.3/4.4 Regression] ICE in |[4.3 Regression] ICE in
   |gfc_conv_array_initializer, |gfc_conv_array_initializer,
   |at  |at
   |fortran/trans-array.c:4208  |fortran/trans-array.c:4208

--- Comment #17 from Tobias Burnus burnus at gcc dot gnu.org 2010-12-09 
08:11:58 UTC ---
Regarding the backport to 4.4: It only handles RESHAPE; as the simplification
for SPREAD, TRANSPOSE and (UN)PACK is not implemented in 4.4.

TODO: Backport to 4.3.


[Bug fortran/45081] [4.3 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:4208

2010-12-09 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45081

--- Comment #18 from Tobias Burnus burnus at gcc dot gnu.org 2010-12-09 
13:31:02 UTC ---
Author: burnus
Date: Thu Dec  9 13:30:59 2010
New Revision: 167637

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=167637
Log:
2010-12-09  Paul Thomas  pa...@gcc.gnu.org

PR fortran/45081
* simplify.c (is_constant_array_expr): Allow structure array
elements as well as constants.
(gfc_simplify_reshape): Copy the derived type of source to
the result.

2010-12-09  Paul Thomas  pa...@gcc.gnu.org

PR fortran/45081
* gfortran.dg/derived_array_intrinsics_1.f90 : New test.


Added:
   
branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/derived_array_intrinisics_1.f90
Modified:
branches/gcc-4_3-branch/gcc/fortran/ChangeLog
branches/gcc-4_3-branch/gcc/fortran/simplify.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog