home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!hubcap!ncrcae!ccscola!syackey
- From: syackey@ccscola.Columbia.NCR.COM (Steve Yackey)
- Subject: Re: something nasty
- Message-ID: <1992Nov11.093527.17886@ncrcae.ColumbiaSC.NCR.COM>
- Nntp-Posting-Host: ccscola
- Organization: NCR Corp, E&M-Columbia, Columbia, SC
- References: <1992Nov06.105523.3309@ncrcae.ColumbiaSC.NCR.COM> <1992Nov9.171715.20728@sierra.com>
- Date: Wed, 11 Nov 92 14:35:27 GMT
- Lines: 60
-
- In article <1992Nov9.171715.20728@sierra.com> dkarr@sierra.com (David Karr) writes:
- >syackey@ccscola.Columbia.NCR.COM (Steve Yackey) writes:
- >: In article <540@ulogic.UUCP> hartman@ulogic.UUCP (Richard M. Hartman) writes:
- >: >In article <1992Nov1.224626.771@BofA.com> dan@BofA.COM (Dan Brockman) writes:
- >: >>
- >: >>If you can explain this, please send me email and
- >: >>tell me how to fix my code so it runs.
- >: >>
- >: >>---------------- the big nasty --------------------
- >: >>
- >: >>
- >: >>"Dbasesw.c", line 1842: internal <<AT&T C++ Translator
- >: >>2.1.03 08/31/90>> error: bus error (or something nasty
- >: >> like that)
- >: >
- >: >1) I have seen this (SCO ODT, HCR C++ compiler). No rhyme or reason
- >: > that we've ever been able to determine. Sometimes just simple
- >: > syntax errors.
- >: >
- >: >2) You did't give us the code w/ the problem (which may or may not
- >: > have helped...)
- >: >
- >:
- >: the magic fix (works here) is to take the entire function, i.e., stuff
- >: between the {}, that has the error, line 1842 in this case, yank it out
- >: and stick it at the top of the source file.
- >:
- >: have no idea what this does, but it has always worked.
- >:
- >
- >(I have a suspicion we have a problem with our outbound news. If you
- >read news frequently, could you indicate that you saw this note in
- >email?)
- >
- >As I mentioned before, we only get that on the HP compiler, and only
- >if we compile with "-g". I tried moving the function that got the
- >error to the "top" of the source file (first function after #include
- >section), but it didn't fix the error. It did change the error
- >message, though.
- >
- >This is the error I get before moving the function:
- >
- >CC: "/tmp_mnt/sambu/people/dkarr/work/new2dm/ui/CrossSection.cc", line 593: internal error: bus error (or something nasty like that) (3058)
- >
- >This is what I get after moving the function:
- >
- >CC: "/tmp_mnt/sambu/people/dkarr/work/new2dm/ui/CrossSection.cc", line 575: internal error: (function: DbgPush::~DbgPush()) Optdriver: Instruction outside a procedure. (6731)
- >
- >--
- >David M. Karr
- >Sierra Geophysics, Inc.
- >ARPA: dkarr@sierra.com, UUNET: uunet!sgihbtn!dkarr
- >Phone: (206) 822-5200 (x343)
-
- I, also, just recently talked with a person at Computer Innovations, a
- re-seller of Cfront (we buy a C++ debugger from them, but 'must' buy our
- Cfront from an internal supplier - it has the same disease). Anyway, they
- apparently have found the cause of this and cured it in their version. Not
- sure whether they have anything for you environment but they are
- at 908-542-5920.
-