D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7212 - Regression(Head): ICE with overload resolution and delegate/function inference
Summary: Regression(Head): ICE with overload resolution and delegate/function inference
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-valid-code, patch
Depends on:
Blocks:
 
Reported: 2012-01-03 12:10 UTC by Martin Nowak
Modified: 2012-01-05 14:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2012-01-03 12:10:57 UTC
void remove(scope bool delegate(ref int) dg)
{
    int a;
    dg(a);
}

void remove(int value)
{
}

void main()
{
    remove((ref int val) => !!val);
}