Bug 9928 – ice with void* and function literal

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-13T10:40:00Z
Last change time
2013-04-15T22:48:37Z
Keywords
ice, pull, rejects-valid
Assigned to
nobody
Creator
zheny

Comments

Comment #0 by zheny — 2013-04-13T10:40:09Z
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.
Comment #1 by k.hara.pg — 2013-04-15T21:15:35Z
Comment #2 by github-bugzilla — 2013-04-15T22:13:50Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d6b7e51b48b8b723fd3896912d89d147b2653367 fix Issue 9928 - ice with void* and function literal https://github.com/D-Programming-Language/dmd/commit/c2bcc97dd500c92845214af5c94df5883a333773 Merge pull request #1900 from 9rnsr/fix9928 Issue 9928 - ice with void* and function literal