C { dg-do compile } C { dg-options "-O -g" } SUBROUTINE FOO () INTEGER V1 COMMON // V1 END SUBROUTINE BAR () INTEGER V0,V1,V2,V3 COMMON // V1(4),V2(85,4),V3 DO V3=1,V1(1) V0=V2(V3,1) END DO END ICEs in simplify_subreg called from expand_debug_expr. Seems this is Fortran FE's fault, but I think we should both fix up Fortran FE and make expand_debug_expr more robust.
-- Summary: [4.5 Regression] ICE in simplify_subreg on fortran code Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43166