Bug 1264 – anon class in anon delegate in private member == ICE
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2007-06-14T11:03:00Z
Last change time
2015-06-09T05:14:51Z
Assigned to
dvdfrdmn
Creator
default_357-line
Comments
Comment #0 by default_357-line — 2007-06-14T11:03:03Z
interface Fee { void foo(); }
class Farbrausch {
private Fee Feep() {
Fee Feekle=null;
() { Feekle=new class Fee { void foo() { /* whee */ } }; }();
return Feekle;
}
}
void main() { }
Causes a compiler crash on my AMD64 gentoo gdc 0.23.
Verified by LeoD (#d@freenode) on mingw/win32 gdc; presumed universal.
Really sucky. Halp please. :(
Comment #1 by fvbommel — 2007-06-14T14:18:16Z
This was also present in DMD 1.007 (on which GDC 0.23 was based. So it seems to be a frontend bug. Since it's no longer present in DMD 1.015, that would indicate it's already fixed in the frontend and will disappear in the next GDC version (assuming it's based on a recent enough DMD version).
Comment #2 by dvdfrdmn — 2007-07-22T11:18:14Z
Fixed in svn r132 / release 0.24 by earlier changes