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

           Summary: struct alignment failure for delegate in catch block
                    referring to the catched exception
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: fa...@gmx.ch


--- Comment #0 from Fawzi Mohamed <fa...@gmx.ch> 2012-09-02 14:55:45 PDT ---
Dmd 2.060

dmd: struct.c:227: static void AggregateDeclaration::alignmember(structalign_t,
unsigned int, unsigned int*): Assertion `alignment > 0 && !(alignment &
(alignment - 1))' failed.

compiling

---------------
module t;
//    extern(C) int printf(const(char)*,...);                                   

int main(char[][] argv){
    try {
    } catch(Exception e){
    auto dl=delegate void(){
        auto myE=e;
        //printf("%*s\n",e.toString()); // if one wants to guarantee
non-outoptimization;
    };
    }
    return 0;
}

---------------

this is is a issue when porting my code from D1 to D2.

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

Reply via email to