Comment #2 by verylonglogin.reg — 2013-06-18T02:27:25Z
Original testcase 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));
}
---
Comment #3 by clugdbug — 2013-07-04T01:14:14Z
The original test case in this bug report works for me now, and your comment "// now works" indicates that it is fixed for you as well?
The code in comment 2 is a different bug. Although the effects look very similar, it is actually independent of the original one. The bug lies in a different part of the code.
Generally, you should create a new bug report rather than reopening a bug, if the test case in the original bug report has been fixed.
Comment #4 by verylonglogin.reg — 2013-07-05T10:24:06Z
(In reply to comment #3)
> The original test case in this bug report works for me now, and your comment
> "// now works" indicates that it is fixed for you as well?
>
> The code in comment 2 is a different bug. Although the effects look very
> similar, it is actually independent of the original one. The bug lies in a
> different part of the code.
>
> Generally, you should create a new bug report rather than reopening a bug, if
> the test case in the original bug report has been fixed.
Sorry. Created Issue 10551.