Thread overview
[Issue 1203] New: Cannot create Anonclass in loop
Apr 30, 2007
d-bugmail
May 07, 2007
d-bugmail
Jul 01, 2007
d-bugmail
April 30, 2007
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


-- 

May 07, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1203


thomas-dloop@kuehne.cn changed:

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




------- Comment #1 from thomas-dloop@kuehne.cn  2007-05-07 00:18 -------
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


-- 

July 01, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1203


bugzilla@digitalmars.com changed:

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




------- Comment #2 from bugzilla@digitalmars.com  2007-07-01 13:59 -------
Fixed DMD 1.018 and DMD 2.002


--