Bug 2875 – ICE(cgcod.c) setting delegate = &Struct.func

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-04-22T03:15:00Z
Last change time
2015-06-09T01:26:25Z
Keywords
ice-on-invalid-code, patch, wrong-code
Assigned to
bugzilla
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2009-04-22T03:15:30Z
struct Foo { void foo(int x) {} } void main() { void delegate (int) a = &Foo.foo; } Internal error: ..\ztc\cgcod.c 1549 Possibly related to bug 1709: it silently compiles wrong code when compiled with -O. D2 only; D1.042 is OK.
Comment #1 by clugdbug — 2009-05-15T14:38:25Z
The patch for bug 2399 also fixes this. They're not exactly the same bug, though.
Comment #2 by bugzilla — 2009-07-09T02:55:32Z
Fixed dmd 2.031