Bug 18724 – ICE in dmd/dsymbol.d(890)

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-04-04T07:45:09Z
Last change time
2018-06-27T03:31:57Z
Keywords
ice
Assigned to
No Owner
Creator
Seb

Comments

Comment #0 by greensunny12 — 2018-04-04T07:45:09Z
Reduced: --- void main() { regex("foo"); } auto regex(S)(S) { S pat; if (__ctfe) regexImpl(pat); } auto regexImpl(S)(S ) { import bar ; } --- bar.d --- void ()() --- --- core.exception.AssertError@dmd/dsymbol.d(890): Assertion failure ---------------- ??:? _d_assertp [0x1624c651] ??:? _ZN7Dsymbol10oneMembersEP5ArrayIPS_EPS1_P10Identifier [0x16087e48] ??:? _ZN22DsymbolSemanticVisitor5visitEP19TemplateDeclaration [0x16091671] ??:? _ZN19TemplateDeclaration6acceptEP7Visitor [0x1609f24c] ??:? _Z15dsymbolSemanticP7DsymbolP5Scope [0x1608b3d8] ??:? _ZN22DsymbolSemanticVisitor5visitEP6Module [0x1608fe18] ??:? _ZN6Module6acceptEP7Visitor [0x1607c690] ??:? _Z15dsymbolSemanticP7DsymbolP5Scope [0x1608b3d8] ??:? _ZN22DsymbolSemanticVisitor5visitEP6Import [0x1608e38e] ??:? _ZN6Import6acceptEP7Visitor [0x160637b1] ??:? _Z15dsymbolSemanticP7DsymbolP5Scope [0x1608b3d8] ??:? _ZN24StatementSemanticVisitor5visitEP15ImportStatement [0x161656e9] ??:? _ZN15ImportStatement6acceptEP7Visitor [0x16143428] ??:? _Z17statementSemanticP9StatementP5Scope [0x1615975a] ??:? _ZN24StatementSemanticVisitor5visitEP17CompoundStatement [0x16159aa1] ??:? _ZN17CompoundStatement6acceptEP7Visitor [0x1614073c] ??:? _Z17statementSemanticP9StatementP5Scope [0x1615975a] ??:? _ZN16Semantic3Visitor5visitEP15FuncDeclaration [0x1616c893] ??:? _ZN15FuncDeclaration6acceptEP7Visitor [0x160dea98] ??:? _Z9semantic3P7DsymbolP5Scope [0x1616b310] ??:? _ZN16Semantic3Visitor5visitEP16TemplateInstance [0x1616b47f] ??:? _ZN16TemplateInstance6acceptEP7Visitor [0x160aa890] ??:? _Z9semantic3P7DsymbolP5Scope [0x1616b310] ---
Comment #1 by greensunny12 — 2018-06-27T03:31:57Z
No longer reproducible.