www.digitalmars.com         C & C++   DMDScript  

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

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



---
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: -------
Oct 14 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3399


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au



Looks like another case of bug 2437 = bug 2935. The same root cause gives an
ICE in three different places.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 14 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3399


Don <clugdbug yahoo.com.au> changed:

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



No, it's the same as bug 2935.

*** 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: -------
Oct 14 2009