[Issue 1897] New: dmd SEGV with template function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 7 10:05:09 PST 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 at digitalmars.com
        ReportedBy: webmaster at 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


-- 



More information about the Digitalmars-d-bugs mailing list