Summary: Invalid nested-ref check in template constraint
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Kenji Hara <> 2012-06-28 22:24:28 PDT ---
This bug is introduced by the fix issue 8241.

Reported by @meh in github.

> This pull broke something.
> I didn't manage to get a reduced testcase but I get this error:
> nucular/protocols/http/headers.d(65): Error: template 
> std.algorithm.countUntil does not match any function template declaration
> /usr/include/d/std/algorithm.d(3801): Error: template 
> std.algorithm.countUntil cannot deduce template function from argument types 
> !(__lambda4)(Header[])
> nucular/protocols/http/headers.d(65): Error: template instance 
> countUntil!(__lambda4) errors instantiating template
> When compiling _internal = _internal.remove(_internal.countUntil!(a => 
> == name));.
> The incriminating commit is 6cf404d, before that it compiles properly.

Reduced test case:

void main()
    bool b;
    foo!(a => b)();
void foo(alias pred)()
if (is(typeof(pred(1)) == bool)) {}

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to