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

           Summary: ICE when invoking a function with a default struct
                    argument
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: 2kor...@gmail.com


--- Comment #0 from Koroskin Denis <2kor...@gmail.com> 2009-12-25 07:13:10 PST 
---
module test;

struct Foo
{
    this (int i)
    {
    }
}

void bar(Foo foo = Foo(42))
{
}

void main()
{
    bar();
}

# dmd test.d
Internal error: ..\ztc\out.c 1201

I briefly recall submitting similar bug-report a few months ago, but that one
got fixed IIRC. I'll add more info as I find.

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

Reply via email to