[Issue 6961] New: template canFind: cannot deduce template function from argument types !(__dgliteral7)(Result)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 16 15:41:29 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6961

           Summary: template canFind: cannot deduce template function from
                    argument types !(__dgliteral7)(Result)
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: mrmocool at gmx.de


--- Comment #0 from Trass3r <mrmocool at gmx.de> 2011-11-16 15:40:38 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list