[Issue 13297] [CTFE] Modifications of user type pointer member passed by ref in function disappear

2015-01-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13297 --- Comment #4 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0bc8cca5586e5bb060d237188db75d84184fa274 fix Issue 13297 - [CTFE]

[Issue 13297] [CTFE] Modifications of user type pointer member passed by ref in function disappear

2015-01-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13297 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 13297] [CTFE] Modifications of user type pointer member passed by ref in function disappear

2015-01-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13297 --- Comment #1 from Kenji Hara k.hara...@gmail.com --- (In reply to Denis Shelomovskij from comment #0) This code should compile fine: --- struct S { int* p; } void f(ref int* p) { p = cast(int*) 1; assert(p); // passes }

[Issue 13297] [CTFE] Modifications of user type pointer member passed by ref in function disappear

2015-01-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13297 --- Comment #2 from Denis Shelomovskij verylonglogin@gmail.com --- (In reply to Kenji Hara from comment #1) You meant: return s.p != null; // false ? Yes, sorry. --

[Issue 13297] [CTFE] Modifications of user type pointer member passed by ref in function disappear

2015-01-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13297 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #3 from