Bug 1897 – ICE(template.c) with tuple delegate

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2008-03-07T12:05:00Z
Last change time
2014-04-18T09:12:07Z
Keywords
ice-on-valid-code, patch
Assigned to
nobody
Creator
webmaster

Comments

Comment #0 by webmaster — 2008-03-07T12:05:08Z
dmd 2.012, Linux (Fedora Core 6, x86_64) I'm not sure exactly what the specific problem is, but I'm suspicious of "TPL[0..n]". BEGIN CODE void delegate() baz(int n, TPL...)(void function(TPL) func,TPL[0..n] args) {} void foo() { void delegate() tmp = baz!(2, bool,void*)(&bar, false,null); } void bar(bool isStruct, void *dummy) {} END CODE
Comment #1 by clugdbug — 2009-04-02T10:35:32Z
Works for me, Windows DMD 2.027.
Comment #2 by clugdbug — 2009-05-14T06:52:32Z
Russ's test case now works on DMD2.029, but on 1.030, it ICEs: Assertion failure: 'i < parameters->dim' on line 806 in file 'template.c' Possibly related to Issue 2229.
Comment #3 by clugdbug — 2009-09-12T11:51:09Z
My patch to bug 2229 fixes this.
Comment #4 by bugzilla — 2009-10-13T13:50:34Z
Fixed dmd 1.049