==27207== Invalid read of size 4
==27207==    at 0x46E5F6: gfc_simplify_repeat (simplify.c:3131)
==27207==    by 0x42AE72: do_simplify (intrinsic.c:3180)
==27207==    by 0x42BD39: gfc_intrinsic_func_interface (intrinsic.c:3446)
==27207==    by 0x45FCA9: gfc_resolve_expr (resolve.c:1629)
==27207==    by 0x461BD3: resolve_operator (resolve.c:2854)

! Regression. ICE on valid code
! Works with 4.1.2 and 4.2.2, but fails with 4.3.0
! (segmentation fault).
!
! Found using the Fortran Company Fortran 90 Test Suite (Lite),
! Version 1.4
program npr
implicit none
print *, "a" // repeat ("", 3) // repeat ("xxx", 0) // &
                repeat ("string", 4)
end program npr


-- 
           Summary: Regression 4.3: ICE using REPEAT on string literals
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 32834
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34559

Reply via email to