[Issue 9759] New: compiler segfault in StructLiteral::implicitConvTo(Type*) on invalid code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 19 11:59:59 PDT 2013


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

           Summary: compiler segfault in
                    StructLiteral::implicitConvTo(Type*) on invalid code
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at dawg.eu


--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-03-19 11:59:58 PDT ---
cat > bug.d << CODE
struct Json
{
    union
    {
        Json[] m_array;
        Json[string] m_object;
    }

    void opAssign(Json v)
    {
    }
}

void bug()
{
    const(Json) r;
    r = r.init;
}
CODE

dmd -c bug.d

--------

2.062 correctly rejects the assignment.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list