]> 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 19:19:55 +0000 (21:19 +0200)
committerMikael Morin <mikael@gcc.gnu.org>
Thu, 1 Sep 2011 19:19:55 +0000 (19:19 +0000)
commit13748c24d81a3585273cd9e4f66a139f0fc9b180
tree1b4f46e934c9b789fc80593ccc27e93f53d7aac7
parent60a7612aacf88879de0b7acfa88a893158d9a47a
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: r178427
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]