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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,45c6e2680274292d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.66.75.201 with SMTP id e9mr320221paw.22.1343130639964; Tue, 24 Jul 2012 04:50:39 -0700 (PDT) Path: p10ni47218125pbh.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!usenet.stanford.edu!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Mon, 16 Jul 2012 11:33:48 +0200 From: =?ISO-8859-1?Q?Thomas_L=F8cke?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120710 Thunderbird/13.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Labeled exit within generalized labeled loop not allowed? References: In-Reply-To: Message-ID: <5003dffc$0$291$14726298@news.sunsite.dk> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 77.234.168.91 X-Trace: news.sunsite.dk DXC=ULiVFjT@b87N=S_a\VX>h;YSB=nbEKnk;Q?=6fSNTkQ13ZOKe3?:>X1cAE?;m5ccY33>^Oo7SF On 07/13/2012 06:19 PM, Marc C wrote: > I find it hard to believe that this would be a GNAT GPL 2012 compiler bug, but I don't see anything in the LRM that indicates this wouldn't be legal. > > Code containing a labeled generalized loop (the "for Elem of Some_Container" type), with a conditional exit referencing the loop label, fails to compile with an "Invalid loop name in exit statement" error. > > What's the rationale for this? Or a consequence of what? Or is it a compiler bug? Hmm, it appears we're the only people who experience this, or perhaps the only people who care? :D I would've thought that labeled exits were something that were widely used. -- Thomas L�cke | thomas@12boo.net | http://12boo.net