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