http://d.puremagic.com/issues/show_bug.cgi?id=9928
Summary: ice with void* and function literal
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: ice, rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Zhenya Chapovsky <[email protected]> 2013-04-13 10:40:09 PDT ---
void main()
{
void* smth = (int x) {return x;};
}
This code fails with message:
dmd: cast.c:1763: virtual Expression* FuncExp::castTo(Scope*, Type*): Assertion
`e->type->nextOf()->covariant(t->nextOf()) == 1' failed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------