Some questions about gfortran.

Julien Lancien calexicoz@gmail.com
Thu Jul 7 15:05:00 GMT 2005


On 6/27/05, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
> On Mon, Jun 27, 2005 at 12:05:39PM -0400, Julien Lancien wrote:
> > Nobody has a clue on this, or can redirect me to another mailing list
> > where I should ask this question ?
> 
> (Please, do not top post!  It loses context.)
> 
> > > * cross reference types , ie :
> > >
> > > type a
> > >   type(b), pointer :: b
> > > end type a
> > >
> > > type b
> > >   type(a), pointer :: a
> > > end type a
> 
>     end type b
> 
> > > * using function result as argument, ie
> > >
> > >    test = associated(getpointer(p))
> > >
> > >    This will end up with :
> > >
> > >       Internal Error at (1):
> > >       gfc_variable_attr(): Expression isn't a variable
> > >
> > >    Whereas doing that works :
> > >
> > >    tmp => getpointer(p)
> > >    test = associated(tmp)
> > >
> 
> I would need to see actual code.  Preferably a short subroutine
> or program.
> 
> For general Fortran questions, I would recommend comp.lang.fortran
> newsgroup.
> 
> --
> Steve
> 


Sorry, I've been quite busy lately. I've enclosed a small module which
fails to compile with gfortran.

I compile it with :

LAMHF77=gfortran mpif77 -c -O2 -Wall mod.f90

And I get :

mod.f90:0: internal compiler error: in gfc_get_derived_type, at
fortran/trans-types.c:1427
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Btw :
$ mpif77 --version
GNU Fortran 95 (GCC 4.0.0 20041214 (Red Hat 4.0.0-0.14.EL4))
Copyright (C) 2004 Free Software Foundation, Inc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mod.f90
Type: application/octet-stream
Size: 224 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050707/9feb0512/attachment.obj>


More information about the Fortran mailing list