re PR fortran/50050 (Internal compiler error free_expr0 at expr.c:3709 via gfc_done_2)
authorMikael Morin <mikael@gcc.gnu.org>
Thu, 25 Aug 2011 19:10:06 +0000 (19:10 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Thu, 25 Aug 2011 19:10:06 +0000 (19:10 +0000)
commitd54e80ce32abdfdbfbc8cd2265091a4187c3efed
treebe3ae41029778855998bde1d67e542a10f66ae45
parent42aa5124f7a7173d1972668378a9531949f92599
re PR fortran/50050 (Internal compiler error free_expr0 at expr.c:3709 via gfc_done_2)

2011-08-25  Mikael Morin  <mikael.morin@gcc.gnu.org>

PR fortran/50050
* expr.c (gfc_free_shape): Do nothing if shape is NULL.
(free_expr0): Remove redundant NULL shape check.
* resolve.c (check_host_association): Ditto.
* trans-expr.c (gfc_trans_subarray_assign): Assert that shape is
non-NULL.
* trans-io.c (transfer_array_component): Ditto.

2011-08-25  Mikael Morin  <mikael.morin@gcc.gnu.org>

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

From-SVN: r178086
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/resolve.c
gcc/fortran/trans-expr.c
gcc/fortran/trans-io.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pointer_comp_init_1.f90 [new file with mode: 0644]