[Issue 23747] 'auto ref' function return signature does not flag escaping a reference to local variable

2023-02-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23747 --- Comment #3 from RazvanN --- (In reply to Mike S from comment #2) > Ah noted, that is perhaps my mistake then. Looking at the specification > again with this in mind, I now see how 'auto ref' is deducing the 'refness' > of a function. > > This

[Issue 23747] 'auto ref' function return signature does not flag escaping a reference to local variable

2023-02-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23747 --- Comment #2 from Mike S --- Ah noted, that is perhaps my mistake then. Looking at the specification again with this in mind, I now see how 'auto ref' is deducing the 'refness' of a function. This means 'auto ref' snd 'ref auto' have different

[Issue 23747] 'auto ref' function return signature does not flag escaping a reference to local variable

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

[Issue 23747] 'auto ref' function return signature does not flag escaping a reference to local variable

2023-02-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23747 Iain Buclaw changed: What|Removed |Added Priority|P1 |P3 --