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.