This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/23308] New: named common block confused as procedure - runtime segfault


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]