This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36267] New: Segfault ICE on assignment of a string pointer to a substring target
- From: "jkrahn at nc dot rr dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2008 22:31:44 -0000
- Subject: [Bug fortran/36267] New: Segfault ICE on assignment of a string pointer to a substring target
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Gfortran segfaults where a string pointer is pointed to a target that is a
substring reference (see example below). If I wrap the assignment in a
subroutine, the pointer assignment to a substring works, so the problem is in
the parser.
$ cat bug.f90
character(len=1), pointer :: p
character(len=10), target :: string
p => string(1:1)
end
$ gfortran -c bug.f90
bug.f90:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
--
Summary: Segfault ICE on assignment of a string pointer to a
substring target
Product: gcc
Version: 4.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jkrahn at nc dot rr dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36267