This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: F77 code errors in gfortran
- From: Paul Brook <paul at codesourcery dot com>
- To: Bud Davis <bdavis at f77 dot linksysnet dot com>, fortran at sources dot redhat dot com
- Date: Wed, 28 Jan 2004 11:00:51 +0000
- Subject: Re: F77 code errors in gfortran
- Organization: CodeSourcery
- References: <20040128040406.GA24981@f77.linksysnet.com>
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