[Issue 1164] New: Wrong order of memory deallocation
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Apr 19 12:06:15 PDT 2007
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=1164
           Summary: Wrong order of memory deallocation
           Product: D
           Version: 1.012
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: aarti at interia.pl
class Storage {
    void sync() {};
}
class Test {
    Storage s;
    this() {s=new Storage;}
    ~this() {s.sync();}
}
void main() {
    new Test;
}
Code above triggers Segmentation fault. Didn't test it on Windows, but probably
it is not platform specific issue.
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list