[Issue 2560] New: ICE on invoking method that takes ref const struct parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 6 21:26:28 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2560

           Summary: ICE on invoking method that takes ref const struct
                    parameter
           Product: D
           Version: 2.023
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: 2korden at gmail.com


module bug;

struct S
{
    static S opCall()
    {
        S s;
        return s;
    }
}

void foo(ref const(S) s)
{
}

void bar()
{
    foo(S());
}

Output:
Internal error: ..\ztc\cod4.c 357

Note that this is a regression since DMD2.022


-- 



More information about the Digitalmars-d-bugs mailing list