[Issue 11452] template alias doesn't work with default template arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 6 05:54:07 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11452


Dicebot <public at dicebot.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public at dicebot.lv


--- Comment #1 from Dicebot <public at dicebot.lv> 2013-11-06 05:54:06 PST ---
Reduced test case:

template Foos(uint SIZE)
{
    alias Foos = int[SIZE];
}

void func(uint size)(Foos!size) {}

void main()
{
    int[4] foos;
    func!4(foos); // does compile
    func(foos);   // doesn't compile
}

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


More information about the Digitalmars-d-bugs mailing list