[Issue 2012] New: Another IFTI case that probably should work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 19 02:57:52 PDT 2008


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

           Summary: Another IFTI case that probably should work
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


void foo(T, U)(U u)
{    
}

void foo(T, A...)(A a)
{    
}

//import std.math;
void main()
{
    int x, y;

    // a 
    foo!(int)(x);
    // b
    foo!(int)(x, y);
}

(a) should instantiate the first template (and it actually does if the second
template is commented out). (b) should instantiate the second template.


-- 



More information about the Digitalmars-d-bugs mailing list