[Issue 8662] Labels rejected in static foreach loop
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 24 06:27:49 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=8662
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |diagnostic
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at gmail.com> 2013-11-25 01:27:48 EST ---
That code is invalid, the foreach is unrolled to the following and there cannot
be a single label to jump to.
void main()
{
// static foreach
{
Label:
int y;
}
{
Label:
int y;
}
}
The error message should be fixed to explain that.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list