See the TODO in trans-expr.c(gfc_trans_alloc_subarray_assign): Quite a lot of correction has to be done to the bounds of array descriptors produced by gfc_conv_expr_descriptor. These concern full array references of variables and array references where conversion is applied implicitly. The fix to PR38324 required that this be done in gfc_trans_alloc_subarray_assign.
Paul -- Summary: Should gfc_conv_expr_descriptor be setting bounds correctly? Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: FIXME Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pault at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42913