This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: What's up with the break statement?
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: What's up with the break statement?
- From: Fredrik Warg <warg at ce dot chalmers dot se>
- Date: Thu, 25 Nov 1999 22:11:27 +0100 (MET)
- cc: java-discuss at sourceware dot cygnus dot com
I just submitted the PR.
(First time, I hope its understandable :)
/Fredrik
On Fri, 26 Nov 1999, Bryce McKinlay wrote:
> Fredrik Warg wrote:
>
> > The break statement exits both for-loops (not just
> > the inner one as it should) when the outer loop body
> > is not enclosed in curly brackets.
>
> > Adding curly brackets to the outer for-loop fixes the problem,
> > but it shouldn't be needed...
> >
> > What say The Masters?
>
> This looks like a problem with the source parser. I just tried it on
> yesterdays gcc and this problem still exists. Would you care to file a
> PR?
>
> http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?database=java
>
> regards
>
> [ bryce ]