www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8761] New: variadic template with nested function using tuple fails

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8761

           Summary: variadic template with nested function using tuple
                    fails
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: fawzi gmx.ch


--- Comment #0 from Fawzi Mohamed <fawzi gmx.ch> 2012-10-04 15:03:41 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 04 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8761


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from yebblies <yebblies gmail.com> 2013-01-03 15:42:52 EST ---
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 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 02 2013