home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:16410 comp.std.c++:1581
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!concert!gatech!hubcap!ncrcae!ncr-sd!npg-sd!rns
- From: rns@npg-sd.SanDiegoCA.NCR.COM (Rick Schubert)
- Newsgroups: comp.lang.c++,comp.std.c++
- Subject: Re: something nasty report
- Message-ID: <5799@npg-sd.SanDiegoCA.NCR.COM>
- Date: 16 Nov 92 20:31:30 GMT
- References: <1992Nov10.192157.20810@BofA.com> <BxIp1L.M37@unx.sas.com> <5798@npg-sd.SanDiegoCA.NCR.COM> <1992Nov14.233744.27337@ornl.gov>
- Organization: NCR Corp., Network Products - San Diego
- Lines: 42
-
- In <1992Nov14.233744.27337@ornl.gov> mullens@jamsun.ic.ornl.gov (James A. Mullens) writes:
-
- >In article <5798@npg-sd.SanDiegoCA.NCR.COM>, rns@npg-sd.SanDiegoCA.NCR.COM (Rick Schubert) writes:
- >|> In <BxIp1L.M37@unx.sas.com> sasghm@theseus.unx.sas.com (Gary Merrill) writes:
- >|>
- >|> >When a compiler dies with an internal error, causes an access
- >|> >violation, etc. it is *always* a bug.
- >|>
- >|> Not *always*: if the internal error is caused by an error in the program
- >|> being compiled, it is merely a very user-unfriendly error message (I
- >|> consider "segmentation violation -- core dumped" to be the ultimate
- >|> diagnostic).
-
- >You forgot the (;-), right?
-
- I purposely omitted it, but it was implied. I try to be subtle.
-
- Sorry to decrease the signal/noise ratio of comp.std.c++, though. I had
- second thoughts after posting (although the original article, and resulting
- thread, shouldn't have been cross-posted to comp.std.c++, anyway).
-
- >I'd say *always*. I'd also say that C++ compilers are more prone to this
- >problem than any other language compilers (my experience anyway).
-
- cfront seems to be prone to this. Are these other C++ compilers cfront-based?
- [You don't have to answer that.]
-
- >When I'm faced with an access violation/segmentation violation/bus error,
- >and I really have no clue as to what's causing it, I start removing large
- >blocks of source code with #if 0 ... #endif until the compiler finishes
- >successfully. Then I reintroduce parts of code until the compiler bombs
- >again. In the end, the problem is isolated. I may have a programming
- >error there, or the compiler may just be batty. I always send a bug report.
- >I'd like to send a bill for my time ( at $60/hour :-).
-
- It's always a good idea to try to isolate a problem before reporting it:
- it increases your chances of having the bug fixed (not to mention helping
- out the people supporting the software).
-
- Follow-ups probably not appropriate, but I'm not redirecting them.
-
- -- Rick Schubert (rick.schubert@SanDiegoCA.NCR.COM)
-