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

           Summary: ICE(glue.c, !vthis->csym): indexing delegate literal
                    in tuple
           Product: D
           Version: 1.020
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2010-04-26 02:56:03 PDT ---
Applies at least as far back as DMD1.020; also applies to D2. Discovered while
reducing bug 1350. Swapping the order of the two asserts allows it to compile.
==========

void mountainGoat(Callbacks ...)() {
    alias Callbacks[0] Cb;  
    assert(Callbacks[0].ptr);
    assert(Cb.ptr);
}

void gazelle() {
    mountainGoat!( (int i) { int x = i; }   )();
}

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

Reply via email to