Bug 11790 – ICE(interpret.c): passing creation of array with type string as size to CTFE

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-21T10:46:00Z
Last change time
2013-12-21T22:07:56Z
Keywords
ice, pull
Assigned to
nobody
Creator
overv161

Comments

Comment #0 by overv161 — 2013-12-21T10:46:46Z
When compiling the following code: string[string] crash = new string[string]; The following output is given: crash.d(1): Error: string is not an expression crash.d(1): Error: cannot implicitly convert expression (string) of type string to ulong CTFE: ErrorExp in crash.d(1) dmd: interpret.c:310: static int CompiledCtfeFunction::walkAllVars(Expression*, void*): Assertion `0' failed. Aborted (core dumped) This seems like a failure of error propagation.
Comment #1 by yebblies — 2013-12-21T21:07:09Z
Comment #2 by github-bugzilla — 2013-12-21T22:04:59Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e23814fb22514f0c8f156f5e95b1779a16ae05b5 Fix Issue 11790 - ICE(interpret.c): passing creation of array with type string as size to CTFE https://github.com/D-Programming-Language/dmd/commit/6854a582566b76cd34a66dd33c8d007bc9f65d9c Merge pull request #3003 from yebblies/issue11790 Issue 11790 - ICE(interpret.c): passing creation of array with type string as size to CTFE
Comment #3 by yebblies — 2013-12-21T22:07:56Z
< 12 hours