[Issue 3289] New: ICE (..\ztc\cod4.c) when using a delegate inside a foreach
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 3 13:07:21 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3289
Summary: ICE (..\ztc\cod4.c) when using a delegate inside a
foreach
Product: D
Version: 2.031
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: 2korden at gmail.com
Minimal testcase to reproduce:
struct Foo
{
int i;
}
void main()
{
Foo[] array;
foreach (ref foo; array) {
auto x = () {
foo.i = 42;
};
}
}
Internal error: ..\ztc\cod4.c 354
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list