---
class C
{
void testE()
{
class I
{
}
}
void testE()
{
class I
{
}
}
}
---
Assertion is:
assert(type.ty != Tclass || (cast(TypeClass)type).sym == this);
---
Backtrace is:
core.exception.AssertError@ddmd/dclass.d(1007): Assertion failure
----------------
0x6982fd onAssertError
../../../../dev/libphobos/libdruntime/core/exception.d:441
0x446190 _ZN16ClassDeclaration8semanticEP5Scope
ddmd/dclass.d:1007
0x4bff41 _ZN14DeclarationExp8semanticEP5Scope
ddmd/expression.d:7263
0x55734f _ZN24StatementSemanticVisitor5visitEP12ExpStatement
ddmd/statementsem.d:95
0x5476f1 _ZN12ExpStatement6acceptEP7Visitor
ddmd/statement.d:690
0x5679ee ddmd.statement.Statement ddmd.statementsem.semantic(ddmd.statement.Statement, ddmd.dscope.Scope*)
ddmd/statementsem.d:3473
0x55766c _ZN24StatementSemanticVisitor5visitEP17CompoundStatement
ddmd/statementsem.d:150
0x548055 _ZN17CompoundStatement6acceptEP7Visitor
ddmd/statement.d:876
0x5679ee ddmd.statement.Statement ddmd.statementsem.semantic(ddmd.statement.Statement, ddmd.dscope.Scope*)
ddmd/statementsem.d:3473
0x4e6978 _ZN15FuncDeclaration9semantic3EP5Scope
ddmd/func.d:1449
0x408298 _ZN20AggregateDeclaration9semantic3EP5Scope
ddmd/aggregate.d:185
0x4770cc _ZN6Module9semantic3EP5Scope
ddmd/dmodule.d:1131
0x5184ad int ddmd.mars.tryMain(ulong, const(char)**)
ddmd/mars.d:1492
0x5196b7 _Dmain
ddmd/mars.d:1730
Comment #1 by ibuclaw — 2017-06-11T22:14:56Z
According to asm.dlang.org, this ICE did not happen in 2.065.
https://goo.gl/nQe22z
It however is present in version 2.066 -> 2.068 releases, as well as the nightly build.
https://goo.gl/W3MROhhttps://goo.gl/aqoGGm
The ICE does not happen in 2.069 releases and later because of -release compilation.
Comment #2 by dlang-bugzilla — 2017-06-11T23:13:04Z