www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1897] New: dmd SEGV with template function

reply d-bugmail puremagic.com writes:
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


-- 
Mar 07 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1897






Works for me, Windows DMD 2.027.


-- 
Apr 02 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
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





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: -------
May 14 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



My patch to bug 2229 fixes this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 12 2009
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Oct 13 2009