www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3648] New: ICE when invoking a function with a default struct argument

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: 2korden gmail.com



---
module test;

struct Foo
{
    this (int i)
    {
    }
}

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

void main()
{
    bar();
}


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: -------
Dec 25 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3648


Koroskin Denis <2korden gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



---
*** This issue has been marked as a duplicate of issue 2935 ***

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