Newsgroups: comp.lang.fortran
From: Salvatore <sfilipp...@uniroma2.it>
Date: Thu, 29 May 2008 07:07:47 -0700 (PDT)
Local: Thurs, May 29 2008 10:07 am
Subject: Re: Is this legal?
Before someone asks, the error is about the renaming of the specific
versions of foobar as in use foo_mod, protect => s_foobar all three compilers support ALLOCATABLEs in derived types as per On 29 Mag, 16:03, Salvatore <sfilipp...@uniroma2.it> wrote: > Hi,
> subject says all: is the attached code legal? two compilers accept it, > one does not. > Thanks > module d_type_mod > module d_foo_mod > interface foobar > module foo_mod > subroutine s_foobar(x) > if (.not.allocated(x%v)) allocate(x%v(10)) > subroutine d_foobar(x) > if (.not.allocated(x%v)) allocate(x%v(10)) > program test > call foobar(z) > end program test You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||