Bug 8761 – variadic template with nested function using tuple fails
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-04T15:03:00Z
Last change time
2013-01-02T20:42:52Z
Keywords
ice
Assigned to
nobody
Creator
fawzi
Comments
Comment #0 by fawzi — 2012-10-04T15:03:41Z
module t3;
struct A
{
int i=1;
~this(){}
}
void ff(S...)(void delegate(S) dlg)
{
void tt(){
S arg;
}
}
void h(){
void gg(A){}
ff(&gg);
}
--------
ICE with dmd 2.060:
Internal error: ../ztc/cgcs.c 343
using a scoped delegate does not have the problem
Comment #1 by yebblies — 2013-01-02T20:42:52Z
Has the same elem tree and crash as 7474:
DMD v2.061 DEBUG
& el:00E3DFEC cnt=0 cs=0 & TY* 00E3DD84
el:00E3DD84 cnt=0 cs=0 info TYstruct 00E3DAF4 00E3DDBC
el:00E3DAF4 cnt=0 cs=0 dctor TYvoid
el:00E3DDBC cnt=0 cs=0 = TYlong 00E3DE9C 00E3DE64
el:00E3DE9C cnt=0 cs=0 var TYlong _arg_field_0
el:00E3DE64 cnt=0 cs=0 var TYlong _D5testx1A6__initZ
Internal error: backend\cgcs.c 344
*** This issue has been marked as a duplicate of issue 7474 ***