[Issue 1319] New: compiler crashes with functions that take const ref struct arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 5 16:47:46 PDT 2007


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

           Summary: compiler crashes with functions that take const ref
                    struct arguments
           Product: D
           Version: 2.002
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thecybershadow at gmail.com


struct MyStruct
{
        // the presence/absence of fields is irrelevant
}

void test(const ref MyStruct scheme)
{
}

void main()
{
        MyStruct scheme;
        test(scheme);
}


-- 



More information about the Digitalmars-d-bugs mailing list