www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9759] New: compiler segfault in StructLiteral::implicitConvTo(Type*) on invalid code

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: code dawg.eu


--- Comment #0 from Martin Nowak <code 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: -------
Mar 19 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9759


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-03-31 06:54:51 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1818

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 31 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9759



--- Comment #2 from github-bugzilla puremagic.com 2013-03-31 09:13:35 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/174c8959f57265e0b2c714fff7795f600dc3d4a9
fix Issue 9759 - compiler segfault in StructLiteral::implicitConvTo(Type*) on
invalid code

https://github.com/D-Programming-Language/dmd/commit/89d3caf7e9bb61030ff88f54a7bc00f6ff702a37
Merge pull request #1818 from 9rnsr/fix9759

[REG2.063a] Issue 9759 - compiler segfault in
StructLiteral::implicitConvTo(Type*) on invalid code

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 31 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9759


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


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