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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ab1d177a5a26577d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 08 Oct 2011 08:14:32 -0500 Date: Sat, 08 Oct 2011 09:14:15 -0400 From: "Peter C. Chapin" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What's wrong with C++? References: <1ee1a434-4048-48f6-9f5e-d8126bebb808@r19g2000prm.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-dY2qZRHOEErUtrWiADnNn41lmrjHhrbkQsEUYB22bSuQJ0O7BS+7bLwdCOBUK5aM/qNR4qxNlNYApNu!Qt8wOZe0Pu8QyblZuOdbPR1sVyNHx7VYPwvGY/50Ynw2lPVbrrQfgYCKMjb3sXs= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2361 Xref: g2news2.google.com comp.lang.ada:22296 Date: 2011-10-08T09:14:15-04:00 List-Id: On 2011-10-07 21:24, Randy Brukardt wrote: > But isn't that a really terrible error message? When I've had compiler bugs > that caused infinite loops, I've often spent many hours trying to find a > work-around, and only trial-and-error works (there being no information at > all as to the cause). You're right, of course, that the "error message" is not very helpful when the compiler just fails to terminate. In our case it wasn't too bad because we were doing frequent builds so the amount of material under suspicion was not large. The problem was due to a subprogram with a large number of overly complicated expressions... a relatively well isolated construct. The SPARK simplifier appeared to hang while processing that subprogram (it was nice that it outputs a message each time it moves on to a different one) so it was pretty obvious what the problem was once we looked at the offending code and at the massive collection of VCs the Examiner had created for that code. We also learned an important lesson about SPARK: keep it simple. Peter