[Issue 24157] [REG2.105] class `this` as lvalue leads to memory corruption

2023-11-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24157 anonymous4 changed: What|Removed |Added See Also||https://issues.dlang.org/sh |

[Issue 24157] [REG2.105] class `this` as lvalue leads to memory corruption

2023-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24157 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 24157] [REG2.105] class `this` as lvalue leads to memory corruption

2023-11-01 Thread d-bugmail--- via Digitalmars-d-bugs
Add test case for Issue 24157 - [REG2.105] class `this` as lvalue leads to memory corruption https://github.com/dlang/dmd/pull/15637 --

[Issue 24157] [REG2.105] class `this` as lvalue leads to memory corruption

2023-09-28 Thread d-bugmail--- via Digitalmars-d-bugs
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

[Issue 24157] [REG2.105] class `this` as lvalue leads to memory corruption

2023-09-25 Thread d-bugmail--- via Digitalmars-d-bugs
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; } } ``` --