Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED!nerds-end From: Christophe de Dinechin Newsgroups: comp.compilers Subject: Re: Error-handling if your compiler had an attitude. Date: Mon, 12 Jan 2015 07:25:44 -0800 (PST) Organization: Compilers Central Lines: 58 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <15-01-012@comp.compilers> References: <14-12-010@comp.compilers> NNTP-Posting-Host: news.iecc.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: miucha.iecc.com 1421175943 46069 2001:470:1f07:1126:0:676f:7373:6970 (13 Jan 2015 19:05:43 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Tue, 13 Jan 2015 19:05:43 +0000 (UTC) Keywords: history, errors Posted-Date: 13 Jan 2015 14:05:43 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1469 On Tuesday, December 30, 2014 at 12:11:54 AM UTC+1, federat...@netzero.com wrote: > What if your compiler had an attitude problem? I was thinking of funny things > it could do for error-handling (maybe with a -X switch for GenX/Millennial > verbose output): MPW C had a few interesting error messages. I ran into the "And the lord said" one, looked into the compiler to find the others, and tried very hard to figure out how to get "Huh ?". They are listed at http://www.ralentz.com/old/mac/humor/mpw-c-errors.html, but I copied them below for your convenience: "String literal too long (I let you have 512 characters, that's 3 more than ANSI said I should)" "...And the lord said, `lo, there shall only be case or default labels inside a switch statement'" "a typedef name was a complete surprise to me at this point in your program" "`Volatile' and `Register' are not miscible" "This struct already has a perfectly good definition" "Only one parameter per register please " "type in (cast) must be scalar; ANSI 3.3.4; page 39, lines 10-11 (I know you don't care, I'm just trying to annoy you)" "This array has no size, and that's bad" "Huh ?" "can't go mucking with a `void *'" "we already did this function" "The target of this goto is a label in a block that has an automatic variable with an initializer" "This label is the target of a goto from outside of the block containing this label AND this block has an automatic variable with an initializer AND your window wasn't wide enough to read this whole error message" "Call me paranoid but finding `/*' inside this comment makes me suspicious" "This function has an explicit return type and deserves a return value" "You are comparing two structures that have holes in them" "Too many errors on one line (make fewer)" "Symbol table full - fatal heap error; please go buy a RAM upgrade from your local Apple dealer" "Trailing comma not permitted in enum definition. (This time I'm letting you off with a warning)"