This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21825] New: Segmentation fault on 2D array initialization with reshape
- From: "enok at lysator dot liu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2005 15:27:26 -0000
- Subject: [Bug fortran/21825] New: Segmentation fault on 2D array initialization with reshape
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code causes segmentation fault with gfortran
PROGRAM TST
CHARACTER(2), PARAMETER :: ETYPE(2,2) = &
RESHAPE((/ 'a1','b1','a2','b2' /),(/2,2/))
END PROGRAM TST
> gfortran4 -c tst.f90
tst.f90:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>
--
Summary: Segmentation fault on 2D array initialization with
reshape
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: enok at lysator dot liu dot se
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21825