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


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


--- Comment #1 from Koroskin Denis <2korden gmail.com> 2009-12-25 07:15:59 PST
---
*** 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