www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1203] New: Cannot create Anonclass in loop

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1203

           Summary: Cannot create Anonclass in loop
           Product: D
           Version: 1.014
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: benoit tionex.de


class C {
    public this(){
    }
}

interface I {
    void fnc();
}

void main(){
    char[][] t;
    foreach( char[] c; t ){
        new class( c ) C, I {
            public this( char[] c ){
                super();
            }
            void fnc(){
            }
        };
    }
}


Error: constructor calls not allowed in loops or after labels


-- 
Apr 30 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1203


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All





Added to DStress as
http://dstress.kuehne.cn/run/s/super_15_A.d
http://dstress.kuehne.cn/run/s/super_15_B.d
http://dstress.kuehne.cn/run/s/super_15_C.d


-- 
May 06 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1203


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed DMD 1.018 and DMD 2.002


-- 
Jul 01 2007