Thread overview
[Issue 3399] New: Internal error: ..\ztc\out.c 1201 when invoking a function that takes a struct as a default argument
Oct 14, 2009
Koroskin Denis
Oct 14, 2009
Don
Oct 14, 2009
Don
October 14, 2009
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


--- Comment #0 from Koroskin Denis <2korden@gmail.com> 2009-10-14 07:31:27 PDT ---
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: -------
October 14, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3399


Don <clugdbug@yahoo.com.au> changed:

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


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2009-10-14 07:45:12 PDT ---
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: -------
October 14, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3399


Don <clugdbug@yahoo.com.au> changed:

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


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2009-10-14 07:45:46 PDT ---
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: -------