www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8315] New: Invalid nested-ref check in template constraint

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8315

           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
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


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

Reported by  meh in github.
https://github.com/D-Programming-Language/dmd/pull/1006#issuecomment-6646067

 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 => a.name
== 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 28 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8315


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2012-06-28 22:39:58 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1029

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 28 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8315



--- Comment #2 from github-bugzilla puremagic.com 2012-06-29 11:54:02 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/cdcf6451553f49509dabe9fa363996ae4e8e1e7b
fix Issue 8315 - Invalid nested-ref check in template constraint

https://github.com/D-Programming-Language/dmd/commit/ec5d4da9ac7c8ed6b0ef7c75765b0624aa67a994
Merge pull request #1029 from 9rnsr/fix8315

[Regression git] Issue 8315 - Invalid nested-ref check in template constraint

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 29 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8315


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


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