digitalmars.D.bugs - [Issue 1916] New: dmd ice on invalid string concat
- d-bugmail puremagic.com (20/20) Mar 12 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1916
- d-bugmail puremagic.com (5/5) Apr 17 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1916
- d-bugmail puremagic.com (11/11) Apr 01 2009 http://d.puremagic.com/issues/show_bug.cgi?id=1916
- d-bugmail puremagic.com (11/11) Apr 14 2009 http://d.puremagic.com/issues/show_bug.cgi?id=1916
- d-bugmail puremagic.com (24/24) Apr 14 2009 http://d.puremagic.com/issues/show_bug.cgi?id=1916
- d-bugmail puremagic.com (10/10) May 14 2009 http://d.puremagic.com/issues/show_bug.cgi?id=1916
- d-bugmail puremagic.com (9/9) May 14 2009 http://d.puremagic.com/issues/show_bug.cgi?id=1916
http://d.puremagic.com/issues/show_bug.cgi?id=1916 Summary: dmd ice on invalid string concat Product: D Version: 2.012 Platform: PC OS/Version: Windows Status: NEW Keywords: ice-on-invalid-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: spam extrawurst.org this invalid piece of code crashes the dmd compiler. [CODE] void main() { string crash = 01 ~ " foo?"; } [/CODE] --
Mar 12 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1916 This looks similar to a BUG 1702 which did get fixed, a later release appears to have re-introduced it. --
Apr 17 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1916 Only segfaults on D2. fog.d(2): Error: incompatible types for ((1) ~ (" foo?")): 'int' and 'immutable( char)[]' fog.d(2): Error: Can only concatenate arrays, not (int ~ immutable(char)[]) fog.d(2): Error: cannot implicitly convert expression ("\x01 foo?") of type int to immutable(char)[] [SEGFAULT] --
Apr 01 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1916 clugdbug yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Keywords| |patch Resolution| |DUPLICATE This is indeed the same as bug 1702. A patch to fix this one also fixed 1702. *** This bug has been marked as a duplicate of 1702 *** --
Apr 14 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1916 clugdbug yahoo.com.au changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | Summary|dmd ice on invalid string |segfault on invalid string |concat |concat Oops, 1702 seems to be already fixed. This isn't the same. Here's a simple patch which prevents the segfault. Index: optimize.c =================================================================== --- optimize.c (revision 23) +++ optimize.c (working copy) -456,6 +457,8 Expression *e1old = e1; e1 = e1->optimize(result); e1 = fromConstInitializer(result, e1); + + if (!type->toBasetype()->ty) return this; // Bugzilla 1916 if (e1 == e1old && e1->op == TOKarrayliteral && --
Apr 14 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1916 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug yahoo.com.au Fixed DMD2.030 and 1.045. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 14 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1916 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 14 2009