Bug 4390 – ICE(expression.c): Invalid string mixin

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-06-25T02:10:00Z
Last change time
2010-11-23T00:57:51Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
yebblies

Comments

Comment #0 by yebblies — 2010-06-25T02:10:09Z
The following code on dmd2.047 causes the error: "Assertion failure: 'se->sz == 1' on line 3005 in file 'expression.c'" The string passed in is invalid due to bug 4389. Test case: import std.stdio; import std.range; string get() { auto ds = "int x;"d; // build "int x;" from dchars string s; foreach(c; ds) s ~= c; return s; } void main() { mixin(get()); }
Comment #1 by clugdbug — 2010-11-23T00:57:51Z
Reduced test case moved to bug 4389, since it is has the same root cause. *** This issue has been marked as a duplicate of issue 4389 ***