[Issue 4333] Cannot use tuple of local symbols in constraint nor static if

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 28 07:10:38 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4333



--- Comment #6 from Gor Gyolchanyan <gor at boloneum.com> 2011-07-28 07:10:37 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > No, it still doesn't work. I tried making a template and passing it a tuple of
> > mixed literals and local variable names and the same error occurred.
> 
> Please post a test case if you have one.

Can't reproduce that problem ATM, but another problem was discovered:

Hsec[] test(items...)()
{
    return Hsec(items);
}

unittest
{
    int i;
    float f;
    char c;

    foreach(z;  test!(5, i, 2.3f, f, 'a', c))
    {    
        writeln(z.type, " ", z.kind);
    }
}

this code causes DMD to crash.

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


More information about the Digitalmars-d-bugs mailing list