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: 103376,45c6e2680274292d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.223.73 with SMTP id qs9mr2048207pbc.7.1342200095660; Fri, 13 Jul 2012 10:21:35 -0700 (PDT) Path: l9ni11632pbj.0!nntp.google.com!news1.google.com!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Fri, 13 Jul 2012 19:21:35 +0200 From: =?ISO-8859-1?Q?Thomas_L=F8cke?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 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: <5000591f$0$284$14726298@news.sunsite.dk> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 77.234.168.90 X-Trace: news.sunsite.dk DXC=`TaUK^Ca1Gaj?5fOS\LBAnYSB=nbEKnkkcmNRUa7T1Ln3ZOKe3?:>XacAE?;m5ccYc3>^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? Yea, I got hit by that one also, and it's annoying as heck. I need my loop labels, or my sanity will crumple. Yes, I'm that fragile. :D -- Thomas L�cke | thomas@12boo.net | http://12boo.net