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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c0b40cfe80587a8d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.27.132 with SMTP id t4mr6882679pbg.3.1320312849001; Thu, 03 Nov 2011 02:34:09 -0700 (PDT) Path: p6ni65910pbn.0!nntp.google.com!news1.google.com!postnews.google.com!l19g2000yqc.googlegroups.com!not-for-mail From: Phil Thornley Newsgroups: comp.lang.ada Subject: Re: task discriminants and invariant expressions in SPARK Date: Thu, 3 Nov 2011 02:34:08 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4eae96be$0$6564$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 88.97.49.112 Mime-Version: 1.0 X-Trace: posting.google.com 1320312848 32675 127.0.0.1 (3 Nov 2011 09:34:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 Nov 2011 09:34:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l19g2000yqc.googlegroups.com; posting-host=88.97.49.112; posting-account=Fz1-yAoAAACc1SDCr-Py2qBj8xQ-qC2q User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLUEHNKC X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C),gzip(gfe) Xref: news1.google.com comp.lang.ada:18799 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-11-03T02:34:08-07:00 List-Id: On Oct 31, 12:38=A0pm, Georg Bauhaus wrote: > In a subprogram (named Test) local to a task, the body is a case > distinction that depends only on the value of the task's discriminant. > SPARK reports a flow error because referring to the discriminant > yields an invariant expression. I am trying to understand why > this is a flow error. Or maybe, why this flow is an error. I can't find anything relevant in the documentation - there's no list of known deficiences in the GPL release note. It is probably worth reporting this even if you are not a supported customer - use spark@adacore.com as the address (and include "SPARK" in the subject line otherwise it gets dumped in the spam bucket). Cheers, Phil