www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10166] New: XXX is not a template

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

           Summary: XXX is not a template
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: deadalnix gmail.com



See cod below :

auto foo() {
    0.bar!({})(0);
}

void bar(alias handler, T)(T t, int i) {
    t.bar!buzz(i);
}

void buzz(){}

Compile with dmd 2.062. With dmd 2.063 :

bug.d(7): Error: function bug.bar!(function void()
{
}
, int).bar is not a template
bug.d(3): Error: template instance bug.bar!(function void()
{
}
, int) error instantiating

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10166


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com



01:43:49 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2075

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10166




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ad4087b188acc3b7a161a19a3309e70dfedb6790
fix Issue 10166 - XXX is not a template

https://github.com/D-Programming-Language/dmd/commit/24cbea3e3bf4490ee258a0a5749b6a612a86c6b8


[REG2.063a] Issue 10166 - XXX is not a template

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10166




Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2e2c87f05b7acd93302fd47370b7338fdbce27e5


[REG2.063a] Issue 10166 - XXX is not a template

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10166


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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