]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/50050 (Internal compiler error free_expr0 at expr.c:3709 via gfc_done_2)
authorMikael Morin <mikael.morin@sfr.fr>
Thu, 1 Sep 2011 15:52:39 +0000 (17:52 +0200)
committerMikael Morin <mikael@gcc.gnu.org>
Thu, 1 Sep 2011 15:52:39 +0000 (15:52 +0000)
commitf76574fd81e17231469dbb8552ff3070ec5e7b8a
treed2160453252143f2fae29d1c7eb61ee69d4cb548
parent643061b65e78e8869fc398090c51f737154c3ae7
re PR fortran/50050 (Internal compiler error free_expr0 at expr.c:3709 via gfc_done_2)

2011-09-01  Mikael Morin  <mikael.morin@sfr.fr>

PR fortran/50050
* resolve.c (gfc_expr_to_initialize): Don't copy rank.
Free copied shape.  Recalculate shape and rank.

2011-09-01  Mikael Morin  <mikael.morin@sfr.fr>

PR fortran/50050
* gfortran.dg/alloc_comp_initializer_3.f90: New test.
* gfortran.dg/pointer_comp_init.f90: New test.

From-SVN: r178424
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_comp_initializer_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pointer_comp_init_1.f90 [new file with mode: 0644]