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

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!hubcap!ncrcae!ccscola!syackey
  3. From: syackey@ccscola.Columbia.NCR.COM (Steve Yackey)
  4. Subject: Re: something nasty
  5. Message-ID: <1992Nov11.093527.17886@ncrcae.ColumbiaSC.NCR.COM>
  6. Nntp-Posting-Host: ccscola
  7. Organization: NCR Corp, E&M-Columbia, Columbia, SC
  8. References: <1992Nov06.105523.3309@ncrcae.ColumbiaSC.NCR.COM> <1992Nov9.171715.20728@sierra.com>
  9. Date: Wed, 11 Nov 92 14:35:27 GMT
  10. Lines: 60
  11.  
  12. In article <1992Nov9.171715.20728@sierra.com> dkarr@sierra.com (David Karr) writes:
  13. >syackey@ccscola.Columbia.NCR.COM (Steve Yackey) writes:
  14. >: In article <540@ulogic.UUCP> hartman@ulogic.UUCP (Richard M. Hartman) writes:
  15. >: >In article <1992Nov1.224626.771@BofA.com> dan@BofA.COM (Dan Brockman) writes:
  16. >: >>
  17. >: >>If you can explain this, please send me email and
  18. >: >>tell me how to fix my code so it runs.
  19. >: >>
  20. >: >>---------------- the big nasty --------------------
  21. >: >>
  22. >: >>
  23. >: >>"Dbasesw.c", line 1842: internal <<AT&T C++ Translator 
  24. >: >>2.1.03 08/31/90>> error: bus error (or something nasty
  25. >: >> like that)
  26. >: >
  27. >: >1) I have seen this (SCO ODT, HCR C++ compiler).  No rhyme or reason
  28. >: >    that we've ever been able to determine.  Sometimes just simple
  29. >: >    syntax errors.
  30. >: >
  31. >: >2) You did't give us the code w/ the problem (which may or may not
  32. >: >    have helped...)
  33. >: >
  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. >: 
  39. >: have no idea what this does, but it has always worked.
  40. >: 
  41. >
  42. >(I have a suspicion we have a problem with our outbound news.  If you
  43. >read news frequently, could you indicate that you saw this note in
  44. >email?)
  45. >
  46. >As I mentioned before, we only get that on the HP compiler, and only
  47. >if we compile with "-g".  I tried moving the function that got the
  48. >error to the "top" of the source file (first function after #include
  49. >section), but it didn't fix the error.  It did change the error
  50. >message, though.
  51. >
  52. >This is the error I get before moving the function:
  53. >
  54. >CC: "/tmp_mnt/sambu/people/dkarr/work/new2dm/ui/CrossSection.cc", line 593: internal error: bus error (or something nasty like that) (3058)
  55. >
  56. >This is what I get after moving the function:
  57. >
  58. >CC: "/tmp_mnt/sambu/people/dkarr/work/new2dm/ui/CrossSection.cc", line 575: internal error: (function: DbgPush::~DbgPush()) Optdriver: Instruction outside a procedure. (6731)
  59. >
  60. >--
  61. >David M. Karr
  62. >Sierra Geophysics, Inc.
  63. >ARPA: dkarr@sierra.com, UUNET: uunet!sgihbtn!dkarr
  64. >Phone: (206) 822-5200 (x343)
  65.  
  66. I, also, just recently talked with a person at Computer Innovations, a
  67. re-seller of Cfront (we buy a C++ debugger from them, but 'must' buy our
  68. Cfront from an internal supplier - it has the same disease). Anyway, they 
  69. apparently have found the cause of this and cured it in their version. Not
  70. sure whether they have anything for you environment but they are
  71. at 908-542-5920.
  72.