This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Some questions about gfortran.
- From: Julien Lancien <calexicoz at gmail dot com>
- To: fortran at sources dot redhat dot com
- Date: Mon, 27 Jun 2005 12:05:39 -0400
- Subject: Re: Some questions about gfortran.
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HXixCM6QXlsGXTTzUOWCxGIkA2Hzn5oSpUkbSHipRRjfjShjjFEnHThJle5MjCCzf2yx6fYPpvi5O9sBfWyFaNBexSLSy0NL3zhGedMMzjO1UTfVsUiqm3QSYhvg76CaSmysC5miib9rdJMs7hQzTXCojUNUy52UpTb/trrK6yI=
- References: <e18437705062314236bf0ef53@mail.gmail.com>
- Reply-to: Julien Lancien <calexicoz at gmail dot com>
Nobody has a clue on this, or can redirect me to another mailing list
where I should ask this question ?
Thanks.
On 6/23/05, Julien Lancien <calexicoz@gmail.com> wrote:
> Hi everyone.
>
> I'm pretty new to fortran, and I've got some questions I found no answer to.
>
> When compiling with gfortran, I found that I cannot do the following things :
>
> * cross reference types , ie :
>
> type a
> type(b), pointer :: b
> end type a
>
> type b
> type(a), pointer :: a
> end type a
>
> * 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)
>
> Note : the getpointer function is defined in a module, which is
> called at the beginning using : use modulename
>
> I'm unsure if I cannot do these things because they are not part of
> the fortran 90 standards, or if this is because gfortran does not
> support them yet.
>
> I had no problem doing that with the portland group compiler, but
> maybe it's just more permissive.
>
> Anyone can help me on this ?
>
>
> Thanks.
>