home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!boulder!colorado.edu!ejh
- From: ejh@khonshu.colorado.edu (Edward J. Hartnett)
- Subject: really weird compiler hang!
- Message-ID: <EJH.92Nov19092632@khonshu.colorado.edu>
- Sender: news@colorado.edu (The Daily Planet)
- Nntp-Posting-Host: khonshu.colorado.edu
- Organization: CIRES, University of Colorado
- Date: 19 Nov 92 09:26:32
- Lines: 43
-
-
- This is really a weird one! I had this subroutine that I was trying to
- compile this subroutine and it kept hanging in the compile! Here's
- what a pared it down to. If I take out the date = ... line, I get tons
- of erros of course (since I cut out all the declarations, etc.) but if
- I leave it in and compile the following (with a -c to create an object
- file but suppress linking) the compiler gets stuck!
-
-
-
- subroutine get_days(LU, h, typenum, filein)
- ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
- c
- implicit none
- c
- structure /cond_samp_hdr/
- integer data_rate, num_chan, num_ind_val
- integer start_jday, stop_jday
- real start_time, stop_time
- character*80 data_type
- character*80 set_name
- character*100 comment1, comment2, comment3
- character*100 reserved
- end structure
- c
- record /cond_samp_hdr/ h
- c
- date = h.set_name(lnblnk(h.set_name)-7:lnblnk(h.set_name))
- end
-
-
- Here's what make gives me:
- cd /home/khonshu/ejh/cond_samp/atob_src/
- f77 -c -e test.f
- test.f:
- get_days:
-
-
- Can anyone explain this bizarre behavior? I'm running this on a Sun
- IPC, running 4.1.1, using the Sun fortran compiler.
- --
- Edward Hartnett ejh@khonshu.colorado.edu
-
-