[Issue 11790] New: ICE(interpret.c): passing creation of array with type string as size to CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 21 10:46:48 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11790
Summary: ICE(interpret.c): passing creation of array with type
string as size to CTFE
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: overv161 at gmail.com
--- Comment #0 from Alexander Overvoorde <overv161 at gmail.com> 2013-12-21 10:46:46 PST ---
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.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list