← Back to index
|
Original Bugzilla link
Bug 15126 – [REG2.069-devel] dmd crashes when analyzing array literal
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-09-28T18:38:00Z
Last change time
2015-09-29T19:38:13Z
Keywords
ice, pull
Assigned to
nobody
Creator
code
Comments
Comment #0
by code — 2015-09-28T18:38:05Z
cat > bug.d << CODE struct Json { ubyte[16] m_data; const(Json) opDispatch(string prop)() const { } Json opDispatch(string prop)() { } } template isCustomSerializable(T) { enum isCustomSerializable = T.init.toRepresentation(); } alias bug = isCustomSerializable!Json; CODE dmd -c bug ---- Crashes b/c some of the array literal expressions are null. Might be an oversight of
https://github.com/D-Programming-Language/dmd/pull/5085.
This affects vibe.d. ---- Program received signal SIGSEGV, Segmentation fault. 0x0000000000541df8 in resolvePropertiesX(Scope*, Expression*, Expression*) () #0 0x0000000000541df8 in resolvePropertiesX(Scope*, Expression*, Expression*) () #1 0x0000000000542c7f in resolveProperties(Scope*, Expression*) () #2 0x0000000000544039 in arrayExpressionToCommonType(Scope*, Array<Expression*>*, Type**) () #3 0x000000000054cf78 in ArrayLiteralExp::semantic(Scope*) () #4 0x0000000000543b1e in arrayExpressionSemantic(Array<Expression*>*, Scope*, bool) () #5 0x000000000054da3c in StructLiteralExp::semantic(Scope*) () ----
Comment #1
by k.hara.pg — 2015-09-29T01:23:59Z
https://github.com/D-Programming-Language/dmd/pull/5139
Comment #2
by github-bugzilla — 2015-09-29T19:38:12Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/c4b80e7ffa1428e4c48a31289b1d2e6ed680da71
fix Issue 15126 - dmd crashes when analyzing array literal
https://github.com/D-Programming-Language/dmd/commit/e598f185f6cd9c27b10fae36bd184dbf354f7bc4
Merge pull request #5139 from 9rnsr/fix15126 [REG2.069-devel] Issue 15126 - dmd crashes when analyzing array literal