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: Fredrik Warg <warg at ce dot chalmers dot se>
- Subject: Re: What's up with the break statement?
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Fri, 26 Nov 1999 08:53:17 +1300
- CC: java-discuss at sourceware dot cygnus dot com
- References: <Pine.GSO.3.96.991125143453.21947A-100000@mescal.ce.chalmers.se>
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 ]