[Issue 8761] New: variadic template with nested function using tuple fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 4 15:09:33 PDT 2012


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

           Summary: variadic template with nested function using tuple
                    fails
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: fawzi at gmx.ch


--- Comment #0 from Fawzi Mohamed <fawzi at gmx.ch> 2012-10-04 15:03:41 PDT ---
module t3;

struct A
{
    int i=1;
    ~this(){}
}

void ff(S...)(void delegate(S) dlg)
{
    void tt(){
        S arg;
    }
}

void h(){
    void gg(A){}
    ff(&gg);
}
--------
ICE with dmd 2.060:

Internal error: ../ztc/cgcs.c 343

using a scoped delegate does not have the problem

-- 
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