This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: f77 code in gfortran


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]