Bug 20807 - compilation crashes when a module contains a procedure with the same name
Summary: compilation crashes when a module contains a procedure with the same name
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-07 08:37 UTC by Guillem Borrell Nogueras
Modified: 2005-09-04 19:08 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillem Borrell Nogueras 2005-04-07 08:37:59 UTC
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

guillem@peret ~/DM $ gfc -c modinit.f90
guillem@peret ~/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.
Comment 1 Andrew Pinski 2005-04-07 08:43:16 UTC
Of course, I tried to reproduce this with the snip of code but cannot.
Comment 2 guillemborrell@gmail.com 2005-04-07 09:09:18 UTC
Subject: Re:  compilation crashes when a module contains
 a procedure with the same name

pinskia at gcc dot gnu dot org wrote:

>------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-07 08:43 -------
>Of course, I tried to reproduce this with the snip of code but cannot.
>
>  
>
Sorry, it crashes for something else, not just for the name conflict.  I
thought this because of the intel compiler output.

Now trying to find the real cause of the compiler's segmentation fault

regards

guillem

-- 
Guillem Borrell Nogueras

website http://torroja.dmt.upm.es/~guillem/

guillemborrell@gmail.com
guillem@torroja.dmt.upm.es

tf. 655388683


Comment 3 Francois-Xavier Coudert 2005-06-25 18:42:28 UTC
Guillem, any update on this one? Did you find the real problem?
Comment 4 Andrew Pinski 2005-09-04 19:08:24 UTC
No feedback in 3 months.