public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bud Davis <bdavis9659@comcast.net>
To: gcc-help@gcc.gnu.org
Cc: benjo@u.washington.edu
Subject: Re: Ancient Fortran, help please
Date: Sat, 18 Dec 2004 09:54:00 -0000	[thread overview]
Message-ID: <1103363644.15167.6.camel@localhost.localdomain> (raw)

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 







             reply	other threads:[~2004-12-18  9:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-18  9:54 Bud Davis [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
2004-12-18  4:51 Ancient Fortran, help please Benjamin Joseph

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1103363644.15167.6.camel@localhost.localdomain \
    --to=bdavis9659@comcast.net \
    --cc=benjo@u.washington.edu \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).