digitalmars.D.bugs - [Issue 18871] New: DMD "illegal hardware instruction" crash
- d-bugmail puremagic.com (113/113) May 18 2018 https://issues.dlang.org/show_bug.cgi?id=18871
https://issues.dlang.org/show_bug.cgi?id=18871 Issue ID: 18871 Summary: DMD "illegal hardware instruction" crash Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: mmcomando gmail.com After upgrade to "DMD64 D Compiler v2.080.0-dirty" my code crashes. Minimized code: import std.experimental.allocator; import std.experimental.allocator.mallocator; struct Vector{ ~this(){} } struct Bucket{ Vector[2] elements; } struct BucketsChain{ Bucket* addBucket(){ return Mallocator.instance.make!Bucket; } } Backtrace: _D3dmd10dinterpret9interpretFCQBc4func15FuncDeclarationPSQCdQCc10InterStatePSQCx4root5array__T5ArrayTCQDw10expression10ExpressionZQBkQBgZQBk () _D3dmd10dsymbolsem24templateInstanceSemanticFCQBs9dtemplate16TemplateInstancePSQCz6dscope5ScopePSQDr4root5array__T5ArrayTCQEq10expression10ExpressionZQBkZv () _D3dmd10staticcond19evalStaticConditionFPSQBo6dscope5ScopeCQCf10expression10ExpressionQBcKbZb () StatementSemanticVisitor::visit(StaticAssertStatement*) () () DsymbolSemanticVisitor::attribSemantic(AttribDeclaration*) () _D3dmd10dsymbolsem24templateInstanceSemanticFCQBs9dtemplate16TemplateInstancePSQCz6dscope5ScopePSQDr4root5array__T5ArrayTCQEq10expression10ExpressionZQBkZv () _D3dmd10staticcond19evalStaticConditionFPSQBo6dscope5ScopeCQCf10expression10ExpressionQBcKbZb () _D3dmd10staticcond19evalStaticConditionFPSQBo6dscope5ScopeCQCf10expression10ExpressionQBcKbZb () _D3dmd10staticcond19evalStaticConditionFPSQBo6dscope5ScopeCQCf10expression10ExpressionQBcKbZb () () _D3dmd10dsymbolsem24templateInstanceSemanticFCQBs9dtemplate16TemplateInstancePSQCz6dscope5ScopePSQDr4root5array__T5ArrayTCQEq10expression10ExpressionZQBkZv () _D3dmd9dtemplate15functionResolveFPSQBi11declaration5MatchCQCf7dsymbol7DsymbolSQCz7globals3LocPSQDq6dscope5ScopePSQEi4root5array__T5ArrayTCQFhQz10rootobject10RootObjectZQBmCQGp5mtype4TypePSQHfQCxQCv__TQCsTCQHw10expression10ExpressionZQDzPPxaZv () Array<RootObject*>*, Type*, Array<Expression*>*, int) () Expression*) () ExpressionSemanticVisitor::visit(DotTemplateInstanceExp*) () () int(char[][]) function).runAll() () --
May 18 2018