www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21248] New:

https://issues.dlang.org/show_bug.cgi?id=21248

          Issue ID: 21248
           Summary: core.exception.OutOfMemoryError src/core/exception.d(6
                    47): Memory allocation failed
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: clearsblue 163.com

---
ERROR: This is a compiler bug.
Please report it via https://issues.dlang.org/enter_bug.cgi
with, preferably, a reduced, reproducible example and the information below.
DustMite (https://github.com/CyberShadow/DustMite/wiki) can help with the
reduction.
---
DMD v2.093.1
predefs   DigitalMars Posix linux ELFv1 CRuntime_Glibc CppRuntime_Gcc
LittleEndian D_Version2 all D_SIMD D_InlineAsm_X86_64 X86_64 D_LP64 D_PIC
assert D_ModuleInfo D_Exceptions D_TypeInfo D_HardFloat
binary    dmd
version   v2.093.1
config    /dlang/dmd-2.093.1/linux/bin64/dmd.conf
DFLAGS    -I/dlang/dmd-2.093.1/linux/bin64/../../src/phobos
-I/dlang/dmd-2.093.1/linux/bin64/../../src/druntime/import
-L-L/dlang/dmd-2.093.1/linux/bin64/../lib64 -L--export-dynamic -fPIC
---
core.exception.OutOfMemoryError src/core/exception.d(647): Memory allocation
failed
----------------
??:? _ZN3Mem5errorEv [0x8f88f8]
??:? allocmemory [0x8f8a23]
??:? _d_newclass [0x8f8b68]
??:? dmd.globals.MATCH dmd.dtemplate.matchArg(dmd.dtemplate.TemplateParameter,
dmd.dscope.Scope*, dmd.root.rootobject.RootObject, ulong,
dmd.root.array.Array!(dmd.dtemplate.TemplateParameter).Array*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*,
dmd.declaration.Declaration*).matchArgType(dmd.dtemplate.TemplateTypeParameter)
[0x6b2d63]
??:? dmd.globals.MATCH dmd.dtemplate.matchArg(dmd.dtemplate.TemplateParameter,
dmd.dscope.Scope*, dmd.root.rootobject.RootObject, ulong,
dmd.root.array.Array!(dmd.dtemplate.TemplateParameter).Array*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*,
dmd.declaration.Declaration*) [0x6b2b46]
??:? dmd.globals.MATCH dmd.dtemplate.matchArg(dmd.dtemplate.TemplateParameter,
dmd.globals.Loc, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, ulong,
dmd.root.array.Array!(dmd.dtemplate.TemplateParameter).Array*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*,
dmd.declaration.Declaration*).matchArgParameter() [0x6b2958]
??:? dmd.globals.MATCH dmd.dtemplate.matchArg(dmd.dtemplate.TemplateParameter,
dmd.globals.Loc, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, ulong,
dmd.root.array.Array!(dmd.dtemplate.TemplateParameter).Array*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*,
dmd.declaration.Declaration*) [0x6b288c]
??:? dmd.globals.MATCH
dmd.dtemplate.TemplateDeclaration.matchWithInstance(dmd.dscope.Scope*,
dmd.dtemplate.TemplateInstance,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*,
dmd.root.array.Array!(dmd.expression.Expression).Array*, int) [0x6a12b1]
??:? int dmd.dtemplate.TemplateInstance.findBestMatch(dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.expression.Expression).Array*).__lambda3(dmd.dsymbol.Dsymbol)
[0x6b0c50]
??:? int dmd.func.overloadApply(dmd.dsymbol.Dsymbol, int
delegate(dmd.dsymbol.Dsymbol), dmd.dscope.Scope*) [0x71f9b2]
??:? bool dmd.dtemplate.TemplateInstance.findBestMatch(dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.expression.Expression).Array*) [0x6b03db]
??:? void
dmd.dsymbolsem.templateInstanceSemantic(dmd.dtemplate.TemplateInstance,
dmd.dscope.Scope*, dmd.root.array.Array!(dmd.expression.Expression).Array*)
[0x6964a0]
??:? _ZN22DsymbolSemanticVisitor5visitEP16TemplateInstance [0x687f9a]
??:? _ZN16TemplateInstance6acceptEP7Visitor [0x6b1d3d]
??:? _ZN25ExpressionSemanticVisitor5visitEP8ScopeExp [0x6f3e0f]
??:? _ZN8ScopeExp6acceptEP7Visitor [0x6dd789]
??:? bool dmd.staticcond.evalStaticCondition(dmd.dscope.Scope*,
dmd.expression.Expression, dmd.expression.Expression, out bool,
dmd.root.array.Array!(dmd.expression.Expression).Array*).impl(dmd.expression.Expression)
[0x858f04]
??:? bool dmd.staticcond.evalStaticCondition(dmd.dscope.Scope*,
dmd.expression.Expression, dmd.expression.Expression, out bool,
dmd.root.array.Array!(dmd.expression.Expression).Array*).impl(dmd.expression.Expression)
[0x858bef]
??:? bool dmd.staticcond.evalStaticCondition(dmd.dscope.Scope*,
dmd.expression.Expression, dmd.expression.Expression, out bool,
dmd.root.array.Array!(dmd.expression.Expression).Array*).impl(dmd.expression.Expression)
[0x858bef]
??:? bool dmd.staticcond.evalStaticCondition(dmd.dscope.Scope*,
dmd.expression.Expression, dmd.expression.Expression, out bool,
dmd.root.array.Array!(dmd.expression.Expression).Array*).impl(dmd.expression.Expression)
[0x858bef]
??:? bool dmd.staticcond.evalStaticCondition(dmd.dscope.Scope*,
dmd.expression.Expression, dmd.expression.Expression, out bool,
dmd.root.array.Array!(dmd.expression.Expression).Array*) [0x858b68]
??:? bool
dmd.dtemplate.TemplateDeclaration.evaluateConstraint(dmd.dtemplate.TemplateInstance,
dmd.dscope.Scope*, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*,
dmd.func.FuncDeclaration) [0x69df22]
??:? dmd.globals.MATCH
dmd.dtemplate.TemplateDeclaration.deduceFunctionTemplateMatch(dmd.dtemplate.TemplateInstance,
dmd.dscope.Scope*, ref dmd.func.FuncDeclaration, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*) [0x6a4352]
??:? int dmd.dtemplate.functionResolve(ref dmd.declaration.MatchAccumulator,
dmd.dsymbol.Dsymbol, dmd.globals.Loc, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*,
const(char)**).applyTemplate(dmd.dtemplate.TemplateDeclaration) [0x6a6b74]
??:? int dmd.dtemplate.functionResolve(ref dmd.declaration.MatchAccumulator,
dmd.dsymbol.Dsymbol, dmd.globals.Loc, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*,
const(char)**).__lambda11(dmd.dsymbol.Dsymbol) [0x6a701c]
??:? int dmd.func.overloadApply(dmd.dsymbol.Dsymbol, int
delegate(dmd.dsymbol.Dsymbol), dmd.dscope.Scope*) [0x71f9b2]
??:? void dmd.dtemplate.functionResolve(ref dmd.declaration.MatchAccumulator,
dmd.dsymbol.Dsymbol, dmd.globals.Loc, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*, const(char)**)
[0x6a5a0e]
??:? dmd.func.FuncDeclaration dmd.func.resolveFuncCall(ref
const(dmd.globals.Loc), dmd.dscope.Scope*, dmd.dsymbol.Dsymbol,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*,
dmd.func.FuncResolveFlag) [0x7205e5]
??:? _ZN25ExpressionSemanticVisitor5visitEP7CallExp [0x6f86a4]
??:? _ZN7CallExp6acceptEP7Visitor [0x6e1ae1]
??:? _ZN25ExpressionSemanticVisitor5visitEP7CallExp [0x6f80ee]
??:? _ZN7CallExp6acceptEP7Visitor [0x6e1ae1]
??:? bool
dmd.expressionsem.arrayExpressionSemantic(dmd.root.array.Array!(dmd.expression.Expression).Array*,
dmd.dscope.Scope*, bool) [0x6e9c5d]
??:? _ZN25ExpressionSemanticVisitor5visitEP7CallExp [0x6f7d24]
??:? _ZN7CallExp6acceptEP7Visitor [0x6e1ae1]
??:? void dmd.typesem.resolve(dmd.mtype.Type, ref const(dmd.globals.Loc),
dmd.dscope.Scope*, dmd.expression.Expression*, dmd.mtype.Type*,
dmd.dsymbol.Dsymbol*, bool).visitTypeof(dmd.mtype.TypeTypeof) [0x870ab9]
??:? void dmd.typesem.resolve(dmd.mtype.Type, ref const(dmd.globals.Loc),
dmd.dscope.Scope*, dmd.expression.Expression*, dmd.mtype.Type*,
dmd.dsymbol.Dsymbol*, bool) [0x86fb45]
??:? _Z12typeSemanticP4TypeRK3LocP5Scope [0x868b8e]
??:? _ZN25ExpressionSemanticVisitor5visitEP5IsExp [0x6fce3a]
??:? _ZN5IsExp6acceptEP7Visitor [0x6df58d]
??:? bool dmd.staticcond.evalStaticCondition(dmd.dscope.Scope*,
dmd.expression.Expression, dmd.expression.Expression, out bool,
dmd.root.array.Array!(dmd.expression.Expression).Array*).impl(dmd.expression.Expression)
[0x858f04]
??:? bool dmd.staticcond.evalStaticCondition(dmd.dscope.Scope*,
dmd.expression.Expression, dmd.expression.Expression, out bool,
dmd.root.array.Array!(dmd.expression.Expression).Array*).impl(dmd.expression.Expression)
[0x858c29]
??:? bool dmd.staticcond.evalStaticCondition(dmd.dscope.Scope*,
dmd.expression.Expression, dmd.expression.Expression, out bool,
dmd.root.array.Array!(dmd.expression.Expression).Array*) [0x858b68]
??:? bool
dmd.dtemplate.TemplateDeclaration.evaluateConstraint(dmd.dtemplate.TemplateInstance,
dmd.dscope.Scope*, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*,
dmd.func.FuncDeclaration) [0x69df22]
??:? dmd.globals.MATCH
dmd.dtemplate.TemplateDeclaration.deduceFunctionTemplateMatch(dmd.dtemplate.TemplateInstance,
dmd.dscope.Scope*, ref dmd.func.FuncDeclaration, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*) [0x6a4352]
??:? int dmd.dtemplate.functionResolve(ref dmd.declaration.MatchAccumulator,
dmd.dsymbol.Dsymbol, dmd.globals.Loc, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*,
const(char)**).applyTemplate(dmd.dtemplate.TemplateDeclaration) [0x6a6b74]
??:? int dmd.dtemplate.functionResolve(ref dmd.declaration.MatchAccumulator,
dmd.dsymbol.Dsymbol, dmd.globals.Loc, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*,
const(char)**).__lambda11(dmd.dsymbol.Dsymbol) [0x6a701c]
??:? int dmd.func.overloadApply(dmd.dsymbol.Dsymbol, int
delegate(dmd.dsymbol.Dsymbol), dmd.dscope.Scope*) [0x71f9b2]
??:? void dmd.dtemplate.functionResolve(ref dmd.declaration.MatchAccumulator,
dmd.dsymbol.Dsymbol, dmd.globals.Loc, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*, const(char)**)
[0x6a5a0e]
??:? dmd.func.FuncDeclaration dmd.func.resolveFuncCall(ref
const(dmd.globals.Loc), dmd.dscope.Scope*, dmd.dsymbol.Dsymbol,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*,
dmd.func.FuncResolveFlag) [0x7205e5]
??:? _ZN25ExpressionSemanticVisitor5visitEP7CallExp [0x6f86a4]
??:? _ZN7CallExp6acceptEP7Visitor [0x6e1ae1]
??:? dmd.expression.Expression
dmd.opover.compare_overload(dmd.expression.BinExp, dmd.dscope.Scope*,
dmd.identifier.Identifier, dmd.tokens.TOK*) [0x7fb181]
??:? _ZN11op_overload10OpOverload5visitEP6CmpExp [0x7f9f1e]
??:? _ZN6CmpExp6acceptEP7Visitor [0x6e4569]
??:? dmd.expression.Expression
dmd.opover.op_overload(dmd.expression.Expression, dmd.dscope.Scope*,
dmd.tokens.TOK*) [0x7f5eb6]
??:? _ZN25ExpressionSemanticVisitor5visitEP6CmpExp [0x712a1a]
??:? _ZN6CmpExp6acceptEP7Visitor [0x6e4569]
??:? _ZN25ExpressionSemanticVisitor5visitEP10CompileExp [0x6fef12]
??:? _ZN10CompileExp6acceptEP7Visitor [0x6e0931]
??:? _ZN24StatementSemanticVisitor5visitEP15ReturnStatement [0x84f274]
??:? _ZN15ReturnStatement6acceptEP7Visitor [0x83fa21]
??:? _ZN24StatementSemanticVisitor5visitEP17CompoundStatement [0x842204]
??:? _ZN17CompoundStatement6acceptEP7Visitor [0x83dbd5]
??:? _ZN16Semantic3Visitor5visitEP15FuncDeclaration [0x83613e]
??:? _ZN15FuncDeclaration6acceptEP7Visitor [0x71f5b5]
??:? _ZN16Semantic3Visitor5visitEP16TemplateInstance [0x833afa]
??:? _ZN16TemplateInstance6acceptEP7Visitor [0x6b1d3d]
??:? void dmd.dtemplate.TemplateInstance.trySemantic3(dmd.dscope.Scope*)
[0x6b1d06]
??:? void
dmd.dsymbolsem.templateInstanceSemantic(dmd.dtemplate.TemplateInstance,
dmd.dscope.Scope*, dmd.root.array.Array!(dmd.expression.Expression).Array*)
[0x697af3]
??:? void dmd.dtemplate.functionResolve(ref dmd.declaration.MatchAccumulator,
dmd.dsymbol.Dsymbol, dmd.globals.Loc, dmd.dscope.Scope*,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*, const(char)**)
[0x6a5a81]
??:? dmd.func.FuncDeclaration dmd.func.resolveFuncCall(ref
const(dmd.globals.Loc), dmd.dscope.Scope*, dmd.dsymbol.Dsymbol,
dmd.root.array.Array!(dmd.root.rootobject.RootObject).Array*, dmd.mtype.Type,
dmd.root.array.Array!(dmd.expression.Expression).Array*,
dmd.func.FuncResolveFlag) [0x7205e5]
??:? _ZN25ExpressionSemanticVisitor5visitEP7CallExp [0x6f96dc]
??:? _ZN7CallExp6acceptEP7Visitor [0x6e1ae1]
??:? _ZN25ExpressionSemanticVisitor5visitEP10CompileExp [0x6fef12]
??:? _ZN10CompileExp6acceptEP7Visitor [0x6e0931]
??:? bool
dmd.expressionsem.arrayExpressionSemantic(dmd.root.array.Array!(dmd.expression.Expression).Array*,
dmd.dscope.Scope*, bool) [0x6e9c5d]
??:? _ZN25ExpressionSemanticVisitor5visitEP7CallExp [0x6f7d24]
??:? _ZN7CallExp6acceptEP7Visitor [0x6e1ae1]
??:? _ZN24StatementSemanticVisitor5visitEP15ReturnStatement [0x84f274]
??:? _ZN15ReturnStatement6acceptEP7Visitor [0x83fa21]
??:? _ZN24StatementSemanticVisitor5visitEP17CompoundStatement [0x842204]
??:? _ZN17CompoundStatement6acceptEP7Visitor [0x83dbd5]
??:? _ZN24StatementSemanticVisitor5visitEP14ScopeStatement [0x843138]
??:? _ZN14ScopeStatement6acceptEP7Visitor [0x83dfe1]
??:? _ZN24StatementSemanticVisitor5visitEP13CaseStatement [0x84dee8]
??:? _ZN13CaseStatement6acceptEP7Visitor [0x83f5b5]
??:? _ZN24StatementSemanticVisitor5visitEP19ForwardingStatement [0x8437c5]
??:? _ZN19ForwardingStatement6acceptEP7Visitor [0x83e415]
??:? _ZN24StatementSemanticVisitor5visitEP17CompoundStatement [0x842204]
??:? _ZN17CompoundStatement6acceptEP7Visitor [0x83dbd5]
??:? _ZN24StatementSemanticVisitor5visitEP14ScopeStatement [0x843138]
??:? _ZN14ScopeStatement6acceptEP7Visitor [0x83dfe1]
??:? _ZN24StatementSemanticVisitor5visitEP15SwitchStatement [0x84c0bf]
??:? _ZN15SwitchStatement6acceptEP7Visitor [0x83f4a1]
??:? _ZN24StatementSemanticVisitor5visitEP17CompoundStatement [0x842204]
??:? _ZN17CompoundStatement6acceptEP7Visitor [0x83dbd5]
??:? _ZN24StatementSemanticVisitor5visitEP14ScopeStatement [0x843138]
??:? _ZN14ScopeStatement6acceptEP7Visitor [0x83dfe1]
??:? _ZN24StatementSemanticVisitor5visitEP13CaseStatement [0x84dee8]
??:? _ZN13CaseStatement6acceptEP7Visitor [0x83f5b5]
??:? _ZN24StatementSemanticVisitor5visitEP19ForwardingStatement [0x8437c5]
??:? _ZN19ForwardingStatement6acceptEP7Visitor [0x83e415]
??:? _ZN24StatementSemanticVisitor5visitEP17CompoundStatement [0x842204]
??:? _ZN17CompoundStatement6acceptEP7Visitor [0x83dbd5]
??:? _ZN24StatementSemanticVisitor5visitEP14ScopeStatement [0x843138]
??:? _ZN14ScopeStatement6acceptEP7Visitor [0x83dfe1]
??:? _ZN24StatementSemanticVisitor5visitEP15SwitchStatement [0x84c0bf]
??:? _ZN15SwitchStatement6acceptEP7Visitor [0x83f4a1]
??:? _ZN24StatementSemanticVisitor5visitEP14LabelStatement [0x854551]
??:? _ZN14LabelStatement6acceptEP7Visitor [0x840d4d]
??:? _ZN24StatementSemanticVisitor5visitEP17CompoundStatement [0x842204]
??:? _ZN17CompoundStatement6acceptEP7Visitor [0x83dbd5]
??:? _ZN16Semantic3Visitor5visitEP15FuncDeclaration [0x83613e]
??:? _ZN15FuncDeclaration6acceptEP7Visitor [0x71f5b5]
??:? _ZN16Semantic3Visitor5visitEP16TemplateInstance [0x833afa]
??:? _ZN16TemplateInstance6acceptEP7Visitor [0x6b1d3d]
??:? void dmd.dtemplate.TemplateInstance.trySemantic3(dmd.dscope.Scope*)
[0x6b1d06]
??:? void
dmd.dsymbolsem.templateInstanceSemantic(dmd.dtemplate.TemplateInstance,
dmd.dscope.Scope*, dmd.root.array.Array!(dmd.expression.Expression).Array*)
[0x6978e5]
??:? _ZN22DsymbolSemanticVisitor5visitEP16TemplateInstance [0x687f9a]
??:? _ZN16TemplateInstance6acceptEP7Visitor [0x6b1d3d]
??:? _ZN25ExpressionSemanticVisitor5visitEP8ScopeExp [0x6f3e0f]
??:? _ZN8ScopeExp6acceptEP7Visitor [0x6dd789]

--
Sep 14 2020