Bug 17492 – [REG 2.066] [ICE] AssertError@ddmd/dclass.d(1007): Assertion failure

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-11T22:06:00Z
Last change time
2017-08-07T13:17:14Z
Assigned to
nobody
Creator
ibuclaw

Comments

Comment #0 by ibuclaw — 2017-06-11T22:06:40Z
--- 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/W3MROh https://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
Comment #3 by bugzilla — 2017-07-03T22:57:08Z
Comment #4 by github-bugzilla — 2017-07-09T22:34:04Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b9e92f385a3399f170a010813b0b05aee1110731 fix Issue 17492 - [REG 2.066] [ICE] AssertError@ddmd/dclass.d(1007): Assertion failure https://github.com/dlang/dmd/commit/ed24195a9ff2759b1c1ac2f0486e358eea8b56bc Merge pull request #6964 from WalterBright/fix17492 fix Issue 17492 - [REG 2.066] [ICE] AssertError@ddmd/dclass.d(1007): … merged-on-behalf-of: Martin Nowak <[email protected]>
Comment #5 by github-bugzilla — 2017-07-10T11:10:54Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b9e92f385a3399f170a010813b0b05aee1110731 fix Issue 17492 - [REG 2.066] [ICE] AssertError@ddmd/dclass.d(1007): Assertion failure https://github.com/dlang/dmd/commit/ed24195a9ff2759b1c1ac2f0486e358eea8b56bc Merge pull request #6964 from WalterBright/fix17492
Comment #6 by github-bugzilla — 2017-08-07T13:17:14Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b9e92f385a3399f170a010813b0b05aee1110731 fix Issue 17492 - [REG 2.066] [ICE] AssertError@ddmd/dclass.d(1007): Assertion failure https://github.com/dlang/dmd/commit/ed24195a9ff2759b1c1ac2f0486e358eea8b56bc Merge pull request #6964 from WalterBright/fix17492