module fitness

  use modinit

   implicit none

  contains

  ...

  function fitness(word,totalsize)

     implicit none

     real    :: fitness
     integer :: totalsize
     integer, dimension(totalsize) :: word
 
   ...

gives internal compiler error instead of showing the error in the code

[EMAIL PROTECTED] ~/DM $ gfc -c modinit.f90
[EMAIL PROTECTED] ~/DM $ gfc -c modfitness.f90
modfitness.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: compilation crashes when a module contains a procedure
                    with the same name
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: guillemborrell at yahoo dot es
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20807

Reply via email to