Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
July 05, 2013 [Issue 10551] New: [CTFE] Wrong-code on passing dereferenced array pointer by ref 2 | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10551 Summary: [CTFE] Wrong-code on passing dereferenced array pointer by ref 2 Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: CTFE, wrong-code Severity: major Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: verylonglogin.reg@gmail.com --- Comment #0 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-07-05 21:23:12 MSD --- Original testcase which was reduced to Issue 10243 still fails. Another reduced testcase: --- void f(ref ubyte n) { n = 1; } void g(ubyte* p) { f(p[0]); } void test() { ubyte[1] arr; //f(*arr.ptr); // now works g(arr.ptr); assert(arr == [1]); } void main() { test(); static assert((test(), true)); } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 09, 2013 [Issue 10551] [CTFE] Wrong-code on passing dereferenced array pointer by ref 2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | http://d.puremagic.com/issues/show_bug.cgi?id=10551 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2013-07-09 12:16:34 PDT --- https://github.com/D-Programming-Language/dmd/pull/2324 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 21, 2013 [Issue 10551] [CTFE] Wrong-code on passing dereferenced array pointer by ref 2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | http://d.puremagic.com/issues/show_bug.cgi?id=10551 --- Comment #2 from github-bugzilla@puremagic.com 2013-07-21 11:36:58 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d9a769ed0cbec4065306349077381e3e021498f3 Fix issue 10551 CTFE array pointer passed by ref IndexExp needs to consider the case where we need a reference https://github.com/D-Programming-Language/dmd/commit/97c624f73bc3b76cff8ae9f21c4dba2767f87cd6 Merge pull request #2324 from donc/ctfe10551_derefpointer Fix issue 10551 CTFE array pointer passed by ref -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 13, 2013 [Issue 10551] [CTFE] Wrong-code on passing dereferenced array pointer by ref 2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | http://d.puremagic.com/issues/show_bug.cgi?id=10551 --- Comment #3 from github-bugzilla@puremagic.com 2013-09-13 10:46:05 PDT --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3686f3fc96f604676156e5f7e487ba1f89d9456b Fix issue 10551 CTFE array pointer passed by ref IndexExp needs to consider the case where we need a reference -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 13, 2013 [Issue 10551] [CTFE] Wrong-code on passing dereferenced array pointer by ref 2 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | http://d.puremagic.com/issues/show_bug.cgi?id=10551 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Version|D2 |D1 & D2 Resolution| |FIXED -- 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