[Issue 3399] New: Internal error: ..\ztc\out.c 1201 when invoking a function that takes a struct as a default argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 14 07:31:28 PDT 2009


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

           Summary: Internal error: ..\ztc\out.c 1201 when invoking a
                    function that takes a struct as a default argument
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: 2korden at gmail.com


--- Comment #0 from Koroskin Denis <2korden at gmail.com> 2009-10-14 07:31:27 PDT ---
struct Test
{
    this(int i)
    {
    }
}

void foo(Test test = Test(0))
{
}

void main()
{
    foo();
}

Output: Internal error: ..\ztc\out.c 1201

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


More information about the Digitalmars-d-bugs mailing list