[Issue 3648] New: ICE when invoking a function with a default struct argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 25 07:13:11 PST 2009


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: nobody at puremagic.com
        ReportedBy: 2korden at gmail.com


--- Comment #0 from Koroskin Denis <2korden at 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: -------


More information about the Digitalmars-d-bugs mailing list