digitalmars.D.bugs - [Issue 15126] New: [Reg 2.069-devel] dmd crashes when analyzing
- via Digitalmars-d-bugs (48/48) Sep 28 2015 https://issues.dlang.org/show_bug.cgi?id=15126
https://issues.dlang.org/show_bug.cgi?id=15126 Issue ID: 15126 Summary: [Reg 2.069-devel] dmd crashes when analyzing array literal Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: ice Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: code dawg.eu 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*) () () Array<Expression*>*, Type**) () bool) () ---- --
Sep 28 2015