www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3307] New: Template alias default parameters aren't resolved properly

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

           Summary: Template alias default parameters aren't resolved
                    properly
           Product: D
           Version: 2.022
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au


--- Comment #0 from Don <clugdbug yahoo.com.au> 2009-09-08 13:25:06 PDT ---
This is the fourth bug reported in bug 3392.

struct dog(alias W = 0) 
{ }

dog!(S) foo(alias S)() {
    return dog!(S)();
}

dog!() test3307 = foo!(0)();

---
crash.d(5): Error: cannot implicitly convert expression (dog()) of type dog!(S
) to dog!()

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 08 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3307



--- Comment #1 from Don <clugdbug yahoo.com.au> 2009-09-08 13:27:09 PDT ---
Typo: the bug was originally reported in bug 3293.

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