Bug 12397 – CTFE ICE CompiledCtfeFunction::walkAllVars with 2.065

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-18T03:12:00Z
Last change time
2014-06-07T18:28:40Z
Keywords
ice, pull
Assigned to
nobody
Creator
hoganmeier
Blocks
12836

Comments

Comment #0 by hoganmeier — 2014-03-18T03:12:43Z
Compiling DustMite master. Here's the reduced version, removing ': int' makes it disappear: $ cat splitter.d struct DSplitter { enum Token : int { max = tokenLookup.length } immutable string[Token.max] tokenText = { }; } $ dmd splitter.d splitter.d(5): Error: undefined identifier tokenLookup splitter.d(8): Error: CTFE internal error: ErrorExp in splitter.d(8) dmd: interpret.c:310: static int CompiledCtfeFunction::walkAllVars(Expression*, void*): Assertion `0' failed.
Comment #1 by k.hara.pg — 2014-06-07T17:40:15Z
Comment #2 by github-bugzilla — 2014-06-07T18:28:38Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4f5d4a6106b020b4d101c7917b13b9886d044094 fix Issue 12397 - CTFE ICE CompiledCtfeFunction::walkAllVars with 2.065 https://github.com/D-Programming-Language/dmd/commit/ccc789289b4c5ae60097a91eef0cc8a3d7c899a1 Merge pull request #3642 from 9rnsr/fix12397 Issue 12397 - CTFE ICE CompiledCtfeFunction::walkAllVars with 2.065