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: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@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: -------

Reply via email to