D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6961 - template canFind: cannot deduce template function from argument types !(__dgliteral7)(Result)
Summary: template canFind: cannot deduce template function from argument types !(__dgl...
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2011-11-16 15:40 UTC by Trass3r
Modified: 2016-10-15 01:21 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Trass3r 2011-11-16 15:40:38 UTC
Tried to compile https://github.com/CyberShadow/DustMite/tree/bf937e91c7a768b4ecc3681c655a269e0a8d3dd8

And here's the completely weird result:
$ dmd -c dustmite.d
$ dmd -c dsplit.d
$ dmd -c dustmite.d dsplit.d
$ dmd -c dsplit.d  dustmite.d
dustmite.d(520): Error: template std.algorithm.canFind(alias pred = "a == b",Range,V) if (is(typeof(find!(pred)(range,value)))) does not match any function template declaration
dustmite.d(520): Error: template std.algorithm.canFind(alias pred = "a == b",Range,V) if (is(typeof(find!(pred)(range,value)))) cannot deduce template function from argument types !(__dgliteral7)(Result)
dustmite.d(520): Error: template instance canFind!(__dgliteral7) errors instantiating template

I've tried my best to reduce this, but couldn't get anywhere cause there's no help at all why the constraint failed.
DustMite itself couldn't help either since a proper test command would be needed or it will simply reduce it to crap with a canFind(a) somewhere.
Comment 1 Infiltrator 2014-03-19 21:55:44 UTC
Is this still an issue?  I have recently compiled dustmite with v2.064 without problems.