This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23765] New: segfault with syntactically wrong common declaration
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Sep 2005 16:03:40 -0000
- Subject: [Bug fortran/23765] New: segfault with syntactically wrong common declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
schluter@pcl247d:~/src/tests> cat pr16404.f90
REAL, TARGET :: B(2,2)
common x/b/
B = 1.
END
schluter@pcl247d:~/src/tests> ../gcc/build/gcc/f951 pr16404.f90
MAIN__
pr16404.f90:3: 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.
schluter@pcl247d:~/src/tests>
The segfault happens when the common block is being translated, but the code
should have been rejected much earlier.
--
Summary: segfault with syntactically wrong common declaration
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tobi at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23765