Thread overview
[Issue 1897] New: dmd SEGV with template function
Mar 07, 2008
d-bugmail
Apr 02, 2009
d-bugmail
May 14, 2009
Don
[Issue 1897] ICE(template.c) with tuple delegate
Sep 12, 2009
Don
Oct 13, 2009
Walter Bright
March 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1897

           Summary: dmd SEGV with template function
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: webmaster@villagersonline.com


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


-- 

April 02, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1897





------- Comment #1 from clugdbug@yahoo.com.au  2009-04-02 10:35 -------
Works for me, Windows DMD 2.027.


-- 

May 14, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1897


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug@yahoo.com.au
            Version|2.012                       |1.044




--- Comment #2 from Don <clugdbug@yahoo.com.au>  2009-05-14 06:52:32 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 12, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1897


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
         OS/Version|Linux                       |All


--- Comment #3 from Don <clugdbug@yahoo.com.au> 2009-09-12 11:51:09 PDT ---
My patch to bug 2229 fixes this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 13, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1897


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2009-10-13 13:50:34 PDT ---
Fixed dmd 1.049

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