home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 15997 < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.4 KB  |  66 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!pilchuck!fnx!sgihbtn!dkarr
  3. From: dkarr@sierra.com (David Karr)
  4. Subject: Re: something nasty
  5. Message-ID: <1992Nov9.171715.20728@sierra.com>
  6. Sender: news@sierra.com
  7. Nntp-Posting-Host: dopey
  8. Organization: Sierra Geophysics,  Kirkland WA
  9. X-Newsreader: Tin 1.1 PL4
  10. References: <1992Nov06.105523.3309@ncrcae.ColumbiaSC.NCR.COM>
  11. Date: Mon, 9 Nov 1992 17:17:15 GMT
  12. Lines: 52
  13.  
  14. syackey@ccscola.Columbia.NCR.COM (Steve Yackey) writes:
  15. : In article <540@ulogic.UUCP> hartman@ulogic.UUCP (Richard M. Hartman) writes:
  16. : >In article <1992Nov1.224626.771@BofA.com> dan@BofA.COM (Dan Brockman) writes:
  17. : >>
  18. : >>If you can explain this, please send me email and
  19. : >>tell me how to fix my code so it runs.
  20. : >>
  21. : >>---------------- the big nasty --------------------
  22. : >>
  23. : >>
  24. : >>"Dbasesw.c", line 1842: internal <<AT&T C++ Translator 
  25. : >>2.1.03 08/31/90>> error: bus error (or something nasty
  26. : >> like that)
  27. : >
  28. : >1) I have seen this (SCO ODT, HCR C++ compiler).  No rhyme or reason
  29. : >    that we've ever been able to determine.  Sometimes just simple
  30. : >    syntax errors.
  31. : >
  32. : >2) You did't give us the code w/ the problem (which may or may not
  33. : >    have helped...)
  34. : >
  35. : the magic fix (works here) is to take the entire function, i.e., stuff
  36. : between the {}, that has the error, line 1842 in this case, yank it out
  37. : and stick it at the top of the source file.
  38. : have no idea what this does, but it has always worked.
  39.  
  40. (I have a suspicion we have a problem with our outbound news.  If you
  41. read news frequently, could you indicate that you saw this note in
  42. email?)
  43.  
  44. As I mentioned before, we only get that on the HP compiler, and only
  45. if we compile with "-g".  I tried moving the function that got the
  46. error to the "top" of the source file (first function after #include
  47. section), but it didn't fix the error.  It did change the error
  48. message, though.
  49.  
  50. This is the error I get before moving the function:
  51.  
  52. CC: "/tmp_mnt/sambu/people/dkarr/work/new2dm/ui/CrossSection.cc", line 593: internal error: bus error (or something nasty like that) (3058)
  53.  
  54. This is what I get after moving the function:
  55.  
  56. CC: "/tmp_mnt/sambu/people/dkarr/work/new2dm/ui/CrossSection.cc", line 575: internal error: (function: DbgPush::~DbgPush()) Optdriver: Instruction outside a procedure. (6731)
  57.  
  58. --
  59. David M. Karr
  60. Sierra Geophysics, Inc.
  61. ARPA: dkarr@sierra.com, UUNET: uunet!sgihbtn!dkarr
  62. Phone: (206) 822-5200 (x343)
  63.