home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / fortran / 4366 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.6 KB  |  55 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!boulder!colorado.edu!ejh
  3. From: ejh@khonshu.colorado.edu (Edward J. Hartnett)
  4. Subject: really weird compiler hang!
  5. Message-ID: <EJH.92Nov19092632@khonshu.colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: khonshu.colorado.edu
  8. Organization: CIRES, University of Colorado
  9. Date: 19 Nov 92 09:26:32
  10. Lines: 43
  11.  
  12.  
  13. This is really a weird one! I had this subroutine that I was trying to
  14. compile this subroutine and it kept hanging in the compile! Here's
  15. what a pared it down to. If I take out the date = ... line, I get tons
  16. of erros of course (since I cut out all the declarations, etc.) but if
  17. I leave it in and compile the following (with a -c to create an object
  18. file but suppress linking) the compiler gets stuck!
  19.  
  20.  
  21.  
  22.       subroutine get_days(LU, h, typenum, filein)
  23. ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
  24. c
  25.       implicit none
  26. c
  27.       structure /cond_samp_hdr/
  28.          integer data_rate, num_chan, num_ind_val
  29.          integer start_jday, stop_jday
  30.          real start_time, stop_time
  31.          character*80 data_type
  32.          character*80 set_name
  33.          character*100 comment1, comment2, comment3
  34.          character*100 reserved
  35.       end structure
  36. c
  37.       record /cond_samp_hdr/ h
  38. c
  39.       date = h.set_name(lnblnk(h.set_name)-7:lnblnk(h.set_name))
  40.       end
  41.  
  42.  
  43. Here's what make gives me:
  44. cd /home/khonshu/ejh/cond_samp/atob_src/
  45. f77 -c -e test.f
  46. test.f:
  47.     get_days:
  48.  
  49.  
  50. Can anyone explain this bizarre behavior? I'm running this on a Sun
  51. IPC, running 4.1.1, using the Sun fortran compiler.
  52. --
  53. Edward Hartnett            ejh@khonshu.colorado.edu
  54.  
  55.