This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Ancient Fortran, help please
- From: Bud Davis <bdavis9659 at comcast dot net>
- To: gcc-help at gcc dot gnu dot org
- Cc: benjo at u dot washington dot edu
- Date: Sat, 18 Dec 2004 03:54:04 -0600
- Subject: Re: Ancient Fortran, help please
H Ben,
On first glance you have a mismatch between the type of a variable and
the data you are trying to initialize.
But, in most cases, we here at gcc-help give erroneous advice when all
we see is a code fragment. If you could make us a small, "should be
compilable" fragment showing both the declaration and the
data statement, maybe we can help out.
Here is an example that I think shows your problem, but it works !!
$ cat data.f
INTEGER T
DATA T /'VHF '/
PRINT*,T
END
$ g77 data.f
$ ./a.out
541476950
also the output of "g77 --version" can be useful.
--bud