public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Ancient Fortran, help please
@ 2004-12-18  9:54 Bud Davis
  2004-12-18 19:22 ` Benjamin Joseph
  0 siblings, 1 reply; 8+ messages in thread
From: Bud Davis @ 2004-12-18  9:54 UTC (permalink / raw)
  To: gcc-help; +Cc: benjo

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 







^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-12-23 18:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-18  9:54 Ancient Fortran, help please Bud Davis
2004-12-18 19:22 ` Benjamin Joseph
2004-12-19  0:35   ` Bud Davis
2004-12-19  3:48     ` Benjamin Joseph
2004-12-19  9:57     ` custom CPU porting : guidance please sashti srinivasan
2004-12-20  6:17       ` Sriharsha
2004-12-23 18:25         ` sashti srinivasan
2004-12-23 18:33           ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).