https://issues.dlang.org/show_bug.cgi?id=24157
anonymous4 changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
|
https://issues.dlang.org/show_bug.cgi?id=24157
RazvanN changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
Add test case for Issue 24157 - [REG2.105] class `this` as lvalue leads to
memory corruption
https://github.com/dlang/dmd/pull/15637
--
https://issues.dlang.org/show_bug.cgi?id=24157
--- Comment #2 from Dlang Bot ---
@kinke created dlang/dmd pull request #15637 "Revert "fix Issue 24024 - cannot
pass class this to ref class"" mentioning this issue:
- Add test case for Issue 24157 - [REG2.105] class `this
https://issues.dlang.org/show_bug.cgi?id=24157
--- Comment #1 from kinke ---
Interestingly, this does NOT return a ref (the correct thing to do - the `this`
class ref is passed in a CPU register):
```
class Promise {
auto ref unshared() {
return this;
}
}
```
--