This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34559] New: Regression 4.3: ICE using REPEAT on string literals
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2007 19:16:29 -0000
- Subject: [Bug fortran/34559] New: Regression 4.3: ICE using REPEAT on string literals
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
==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