Bug 2123 – Anonymous class crashes

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2008-05-23T12:47:00Z
Last change time
2014-02-24T15:33:33Z
Assigned to
bugzilla
Creator
benoit

Comments

Comment #0 by benoit — 2008-05-23T12:47:08Z
This test case crashes on 1.030 but not on 1.029 and 1.028. I had this mentioned in bug #2067, but it was silently closed, so it is perhaps better to do this into its own bug report. module test; extern(C) int printf(char*,...); class I { public abstract void callI(); } class C { private int index; void test1(){ printf( "ok\n" ); } I test(){ auto i = new class() I { public void callI() { test1(); } }; return i; } } void main () { auto c = new C; auto i = c.test(); i.callI(); }
Comment #1 by bugzilla — 2008-06-22T18:56:48Z
Fixed dmd 1.031 and 2.015