This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23308] New: named common block confused as procedure - runtime segfault
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2005 05:35:25 -0000
- Subject: [Bug fortran/23308] New: named common block confused as procedure - runtime segfault
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
There does not seem to be any check in procedure calls that an external symbol
is not a common block.
[prt@localhost mytests]# cat horrible.f90
program horrible
integer a(10)
common /foo/ a
call foo ()
end program horrible[root@localhost mytests]# /gcc-4.1/bin/gfortran horrible.f90
[prt@localhost mytests]# ./a.out
Segmentation fault
--
Summary: named common block confused as procedure - runtime
segfault
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pault at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23308