← Back to index
|
Original Bugzilla link
Bug 1203 – Cannot create Anonclass in loop
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-30T08:27:00Z
Last change time
2014-02-16T15:22:23Z
Assigned to
bugzilla
Creator
benoit
Comments
Comment #0
by benoit — 2007-04-30T08:27:14Z
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
Comment #1
by thomas-dloop — 2007-05-07T00:18:18Z
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
Comment #2
by bugzilla — 2007-07-01T13:59:44Z
Fixed DMD 1.018 and DMD 2.002