From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79e55eadd97001c2 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Compiler error messages Date: 1998/01/23 Message-ID: #1/1 X-Deja-AN: 318678534 References: <01bd278c$bea48680$9dfc82c1@xhv46.dial.pipex.com> <1998Jan23.084801.1@eisner> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 885582428 6125 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-01-23T00:00:00+00:00 List-Id: Larry says <<> Many is the time when a compiler has reported an error to me, most > elaborately and cleverly, and been completely and 100% wrong about the true > nature/source of the error. And boy does it make me spit. Hands up who > hasn't been infuriated by a 'smart' compiler producing reams of completely > spurious errors (after one legitimate one), presumably because the compiler > writer thought it would be really clever for the compiler to 'ignore' the > first error. I always prefer compilers which simply stop at the first > error. What a sad waste of effort. >> The idea of stopping on the first error is not an unreasonable one, but in practice most people prefer to find more than one error on each compilation if possible. If you really like to get only the first error, then use the GNAT switch -gnatm1, that is what it is there for. But doing good error recovery is definitely not wasted effort for two reasons: 1. Figuring out what really went wrong and recovering from it are closely related tasks. 2. As I say above, many, I would guess most people prefer multiple error messages. By the way, in the Ada case, it is of course impractical to validate a compiler that does not have pretty good error recovery!