Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
February 16, 2012 [Issue 7527] New: [CTFE] Segfault when slicing a pointer at compile time | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7527 Summary: [CTFE] Segfault when slicing a pointer at compile time Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: robert@octarineparrot.com --- Comment #0 from Robert Clipsham <robert@octarineparrot.com> 2012-02-16 23:35:18 GMT --- When compiling the following code: ---- char[] replace(char[] subject) { auto app = Appender(); app.data.ptr[0..subject.length] = subject; return app.data; } struct Appender { char[] data; } enum foo = replace("$a = ?".dup); ---- With dmd 2.058, dmd gives the following: ---- $ dmd test.d test.d(5): Error: pointer cast from char[] to char* is not supported at compile time Segmentation fault: 11 ---- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 18, 2012 [Issue 7527] [CTFE] Segfault when slicing a pointer at compile time | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | http://d.puremagic.com/issues/show_bug.cgi?id=7527 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-02-17 16:04:25 PST --- https://github.com/D-Programming-Language/dmd/pull/728 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 18, 2012 [Issue 7527] [CTFE] Segfault when slicing a pointer at compile time | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | http://d.puremagic.com/issues/show_bug.cgi?id=7527 --- Comment #2 from github-bugzilla@puremagic.com 2012-02-17 16:05:26 PST --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/df8183e4046793b5d5cb61bf96a16eb94c7ac2e3 fix Issue 7527 - [CTFE] Segfault when slicing a pointer at compile time -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 18, 2012 [Issue 7527] [CTFE] Segfault when slicing a pointer at compile time | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | http://d.puremagic.com/issues/show_bug.cgi?id=7527 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 11, 2012 [Issue 7527] [CTFE] Segfault when slicing a pointer at compile time | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | http://d.puremagic.com/issues/show_bug.cgi?id=7527 timon.gehr@gmx.ch changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kajetan.rzepecki+puremagic@ | |gmail.com --- Comment #3 from timon.gehr@gmx.ch 2012-03-11 12:51:31 PDT --- *** Issue 7638 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation