http://d.puremagic.com/issues/show_bug.cgi?id=8456

           Summary: DMD crash with variadic base-class ctor and
                    non-variadic subclass ctor
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: callumena...@gmail.com


--- Comment #0 from callumena...@gmail.com 2012-07-27 15:36:30 PDT ---
The following reduced case causes dmd to crash on Windows 7, DMD v2.059

module crash;

class A
{
    this(T...)(B root, T args)
    {
    }
}

class B : A
{
}

Normal compile using: 
dmd crash.d

Giving B a variadic constructor:
class B : A
{
   this(T...)(T args) { }
}
fixes the problem, but a non-variadic ctor does not help.

In case it is helpful, here is the Win crash report:
Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    dmd.exe
  Application Version:    0.0.0.0
  Application Timestamp:    00000000
  Fault Module Name:    dmd.exe
  Fault Module Version:    0.0.0.0
  Fault Module Timestamp:    00000000
  Exception Code:    c0000005
  Exception Offset:    0007fb07
  OS Version:    6.1.7601.2.1.0.768.3
  Locale ID:    1033
  Additional Information 1:    c0d2
  Additional Information 2:    c0d2fd7c47233db608dcc0a8dfa7e295
  Additional Information 3:    1f23
  Additional Information 4:    1f2306dd978c4ee71ff52bd5c60c90af

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

Reply via email to