digitalmars.D.bugs - [Issue 4390] New: Invalid string mixin causes assertion failure.
- d-bugmail puremagic.com (35/35) Jun 25 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4390
- d-bugmail puremagic.com (12/12) Nov 23 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4390
http://d.puremagic.com/issues/show_bug.cgi?id=4390 Summary: Invalid string mixin causes assertion failure. Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: yebblies gmail.com 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()); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 25 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4390 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE 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 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 23 2010