Summary: can't remove() in case of static associated array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-10-22 20:37:40 PDT ---
example code ( no error ):

void main(){
    C c;
    c = new C(0);
    delete c;
class C{
    static int[int] staticList;
    int myint;

    this( int x ){
        staticList[x] = 1;
        myint = x;
        staticList.remove( myint );

BUT comment out "delete c;" , freeze by end of runtime.

in addition,
code that only refer to staticList did'nt freeze.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to