home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:16459 comp.std.c++:1591
- Newsgroups: comp.lang.c++,comp.std.c++
- Path: sparky!uunet!alt!gkrishna
- From: gkrishna@alt.uucp (Gopal-Krishnan)
- Subject: Re: something nasty
- Message-ID: <1992Nov17.172633.25665@alt.uucp>
- Keywords: cfront nasty
- Organization: Unisys Corp, Camarillo, CA - 93010.
- Date: Tue, 17 Nov 1992 17:26:33 GMT
- Lines: 57
-
- >dan@BofA.com (Dan Brockman) writes in <1992Nov1.224626.771@BofA.com>:
-
- > "DealStruct.c", line 165: internal <<AT&T C++ Translator
- > 2.1.03 08/31/90>> error: bus error (or something nasty
- > like that)
- > Compilation failed
-
- In the summary I did not see the following as 'possible causes'. And so,
- here I am posting this:
-
- 1. When the nesting level is too high cfront dies this gracefully!.
- That is if you have code that says
- {
- blabla
- {
- blabla
- { ...etc.
- I think the AT&T C++ Language System Release Notes or some such document gives
- this number as 20 for 386 machines etc. So, if your program has more than
- that specified number of open '{', then you get this internal error.
- Even if your code does not have that many '{, remember that each variable
- definition midway your code introduces a scope.
- I mean things like
- x= y+z;
- int a = 4; //this introduces a scope.
-
- Way out:
- Just get rid of those unnecessary scopes you have, if any.
- Make extra functions by splitting your code, if that is possible.
- Better still, ask your compiler guy. He should be able to give a fix for you.
- My compiler guy was able to give me a fix (after some time though).
-
- 2. When your code has complicated
- while ... for ... while loops the same thing happens.
-
- Way out:
- Same as above.
-
- 3 onwards:
- I had a few more cases when I got this 'nasty' thing. They are complicated
- code, and hence is not possible to generalise and post them.
-
- Anyway, try workarounds by modifying your code.
- In most cases, it is possible.
-
- My compiler guy said, that he has a handful of signal handlers installed in
- the system, and when any of them is invoked, this msg is printed.
- That is why the msg sounds so nasty.
- -----------------------------------------------------------------------
- Gopal Krishnan | internet: alt!gkrishna@uunet.UU.net
- Unisys Corporation | voice: 805-389-4446
- Open Systems Group | fax : 805-389-4420
- 5155, Camino Ruiz | Take charge. Somebody has to do it -
- Camarillo, CA - 93012. | It might as well be you.
- -----------------------------------------------------------------------
-
-
-