Re: failure due to compiler?

feliks@carlstedt.se (Feliks Kluzniak)
31 Jul 1996 19:27:20 -0400

          From comp.compilers

Related articles
[28 earlier articles]
Re: failure due to compiler? leew@micrologic.com (Lee Webber) (1996-07-23)
Re: failure due to compiler? eric@gyst.com (Eric Hamilton) (1996-07-23)
Re: failure due to compiler? davidg@genmagic.com (1996-07-23)
Re: failure due to compiler? davidg@genmagic.com (1996-07-24)
Re: failure due to compiler? jmccarty@sun1307.spd.dsccc.com (1996-07-26)
Re: failure due to compiler? davidg@genmagic.com (1996-07-31)
Re: failure due to compiler? feliks@carlstedt.se (1996-07-31)
| List of all articles for this month |
From: feliks@carlstedt.se (Feliks Kluzniak)
Newsgroups: comp.compilers
Date: 31 Jul 1996 19:27:20 -0400
Organization: Carlstedt Research & Technology AB
References: 96-07-041 96-07-056 96-07-064 96-07-079
Keywords: errors

My favourite compiler error was the one that allowed a Pascal FOR loop to run
indefinitely.


I was initialising a character translation table with


            for c := chr( 0 ) to chr( 255 ) do ...


and the compiler was clever enough to use a single-byte counter (this was
on a PDP-11). The successor of 255 was, of course, 0, so the loop termination
test in the object code never fired.


This was OMSI Pascal, otherwise an excellent compiler. Happened in the early
eighties.


-- Feliks
[This thread is getting kind of long, I'm going to close it down unless
something really exotic shows up. -John]


--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.