[Issue 4020] New: [ICE][CTFE] struct postblit in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 28 06:32:31 PDT 2010


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

           Summary: [ICE][CTFE] struct postblit in CTFE
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-03-28 06:32:30 PDT ---
This code crashes the dmd V.2.042:


struct Foo {
    int x;
    this(this) { x++; }
}
int bar() {
    Foo f;
    f = f;
    assert(f.x == 1);
    return 0;
}
enum _ = bar();
void main() {}

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