Bug 8009 – ICE with bad type inside templated function with delegate

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-01T04:13:00Z
Last change time
2012-05-24T10:43:08Z
Keywords
ice, pull
Assigned to
nobody
Creator
wfunction

Comments

Comment #0 by wfunction — 2012-05-01T04:13:16Z
void filter(R)(scope bool delegate(ref BAD!R) func) { } void main() { filter(r => r); } gives me an ICE.
Comment #1 by k.hara.pg — 2012-05-01T08:15:31Z
Comment #2 by github-bugzilla — 2012-05-01T21:01:34Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4039497a653cf3334912910b93a2383e930b99b6 fix Issue 8009 - ICE with bad type inside templated function with delegate https://github.com/D-Programming-Language/dmd/commit/be5a37b7efa182cbc015fa80755bdbd4bd8d92fd Merge pull request #917 from 9rnsr/fix8009 Issue 8009 - ICE with bad type inside templated function with delegate
Comment #3 by github-bugzilla — 2012-05-01T21:06:22Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/38595a840d02cc8142a2544f7c36397c5b986deb add test case for Issue 8009 - ICE with bad type inside templated function with delegate
Comment #4 by k.hara.pg — 2012-05-24T10:43:08Z
*** Issue 8090 has been marked as a duplicate of this issue. ***