gfortran: fatal internal error - report requested

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Dec 21 00:26:00 GMT 2009


On Sun, Dec 20, 2009 at 04:18:55PM -0800, Tim Prince wrote:
> Steve Kargl wrote:
> >On Sun, Dec 20, 2009 at 09:45:53PM +0000, John Watts wrote:
> 
> >>     program test_use
> >>     use test_module
> >>     xc=1.3
> >>     write(*,*)xc
> >>     stop
> >>     end
> >>
> >>     module test_module
> >>c
> >>     real(4) xc,yc,zc
> >>c
> >>     end
> >>
> >
> >You have an ordering issue.  You can't USE the module
> >until it's compile.  Your main program will be compiled
> >before the MODULE TEST_MODULE.  Chicken meet egg.
> >
> >
> However, the internal error, if it persisted in a current version, would 
> still be a bug, even though provoked by wrong ordering.  8 months is a 
> long time to use a pre-release compiler.


troutmask:sgk[204] gfc4x -o z g.f90
g.f90:2.20:

     use test_module
                    1
Fatal Error: Can't open module file 'test_module.mod' for reading at (1): No such file or directory
troutmask:sgk[205] gfc44 -o z g.f90
g.f90:2.20:

     use test_module
                    1
Fatal Error: Can't open module file 'test_module.mod' for reading at (1): No such file or directory
troutmask:sgk[206] gfc43 -o z g.f90
g.f90:2.20:

     use test_module
                    1
Fatal Error: Can't open module file 'test_module.mod' for reading at (1): No such file or directory

There is no ICE.
-- 
Steve



More information about the Fortran mailing list