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 errors in gfortran


On Wednesday 28 January 2004 4:04 am, Bud Davis wrote:
> How about this one ?
>
> [bdavis@localhost bin]$ /usr/local/bin/gfortran example2.f
>  In file example2.f:1
>
>        LOGICAL LOAD_FROM_SNAP /.FALSE./
>                             1
> Error: Syntax error in data declaration at (1)
> [bdavis@localhost bin]$ cat example2.f
>        LOGICAL LOAD_FROM_SNAP /.FALSE./
>        END

This is not legal fortran (although it does appear to be accepted by g77).
The correct way to write this is:
        LOGICAL LOAD_FROM_SNAP
        DATA LOAD_FROM_SNAP /.FALSE./
        END


Please file an enhancement bug report (with [gfortran] in the subject line):
http://gcc.gnu.org/bugzilla.

Paul


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