Bug 9759 – compiler segfault in StructLiteral::implicitConvTo(Type*) on invalid code

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-19T11:59:00Z
Last change time
2013-03-31T09:13:48Z
Keywords
ice, pull
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2013-03-19T11:59:58Z
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.
Comment #1 by k.hara.pg — 2013-03-31T06:54:51Z
Comment #2 by github-bugzilla — 2013-03-31T09:13:35Z
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