digitalmars.D.bugs - [Issue 7638] New: [CTFE] std.array.replace causes a segfault at compile time while replacing the begining of a string
- d-bugmail puremagic.com (28/28) Mar 03 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7638
- d-bugmail puremagic.com (11/11) Mar 11 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7638
http://d.puremagic.com/issues/show_bug.cgi?id=7638 Summary: [CTFE] std.array.replace causes a segfault at compile time while replacing the begining of a string Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: kajetan.rzepecki+puremagic gmail.com --- Comment #0 from Kajtek <kajetan.rzepecki+puremagic gmail.com> 2012-03-03 17:51:22 PST --- The code: enum f = "foo"; enum s0 = f.replace("oo", "bar"); enum s1 = f.replace("fo", "bar"); ...results in: /usr/include/d/dmd/phobos/std/array.d(2054): Error: pointer cast from char[] to char* is not supported at compile time Segmentation fault ...under DMD64 2.058 on Linux. It seems to segfault while appending new characters only when replacing the begining of a string at compile time. Replacing anything else works just fine. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 03 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7638 timon.gehr gmx.ch changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from timon.gehr gmx.ch 2012-03-11 12:51:31 PDT --- *** This issue has been marked as a duplicate of issue 7527 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 11 2012