This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: f77 code in gfortran
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Bud Davis <bdavis at f77 dot linksysnet dot com>
- Cc: fortran at sources dot redhat dot com
- Date: Tue, 27 Jan 2004 20:41:40 -0800
- Subject: Re: f77 code in gfortran
- References: <20040128040033.GA24955@f77.linksysnet.com>
On Tue, Jan 27, 2004 at 10:00:33PM -0600, Bud Davis wrote:
> Is this a gfortran bug or f77 code that will have
> to be revised to work with g77 ?
>
> [bdavis@localhost bin]$ /usr/local/bin/gfortran example1.f
> In file example1.f:2
>
> GCOPEN = .TRUE.
> 1
> Error: Can't convert LOGICAL(4) to LOGICAL(1) at (1)
> [bdavis@localhost bin]$ cat example1.f
> LOGICAL*1 GCOPEN
> GCOPEN = .TRUE.
> END
> [bdavis@localhost bin]$
>
>
AFAIK, LOGICAL does not take a byte count under any standard.
Under gfortran I believe only one kind type is defined for
LOGICAL, so LOGICAL == LOGICAL*4. Note, LOGICAL*4 is nonstandard.
--
Steve