https://issues.dlang.org/show_bug.cgi?id=17492
Issue ID: 17492 Summary: [ICE] AssertError@ddmd/dclass.d(1007): Assertion failure Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: ibuc...@gdcproject.org --- 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 --