[Issue 8612] New: struct alignment failure for delegate in catch block referring to the catched exception

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 2 14:55:17 PDT 2012


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: nobody at puremagic.com
        ReportedBy: fawzi at gmx.ch


--- Comment #0 from Fawzi Mohamed <fawzi at 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: -------


More information about the Digitalmars-d-bugs mailing list