digitalmars.D.bugs - [Issue 13968] New: [REG2.067a] constructing and returing union
- via Digitalmars-d-bugs (49/49) Jan 11 2015 https://issues.dlang.org/show_bug.cgi?id=13968
https://issues.dlang.org/show_bug.cgi?id=13968 Issue ID: 13968 Summary: [REG2.067a] constructing and returing union causes segfault Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: sinkuupump gmail.com Compiler segfaults without error messages. Code: union U { bool a; long b; } U test1() { return U(); } U* test2() { return new U(); } Stack trace (with test1): Expression*)::EscapeVisitor::visit(StructLiteralExp*) () Stack trace (with test2): Expression*)::EscapeVisitor::visit(NewExp*) () --
Jan 11 2015