Thread overview
[Issue 21290] [REG2.073] Incorrect escape deprecation on scope lazy pointer parameter
[Issue 21290] [REG2.092] Incorrect escape deprecation on scope lazy pointer parameter
October 04, 2020
https://issues.dlang.org/show_bug.cgi?id=21290

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry

--
October 04, 2020
https://issues.dlang.org/show_bug.cgi?id=21290

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
            Summary|[REG2.092] Incorrect escape |[REG2.073] Incorrect escape
                   |deprecation on scope lazy   |deprecation on scope lazy
                   |pointer parameter           |pointer parameter

--
October 04, 2020
https://issues.dlang.org/show_bug.cgi?id=21290

--- Comment #1 from moonlightsentinel@disroot.org ---
The actual regression happened in 2.073.2.

Introduced by this PR: https://github.com/dlang/dmd/pull/6388

--
October 20, 2020
https://issues.dlang.org/show_bug.cgi?id=21290

--- Comment #2 from johanengelen@weka.io ---
Workaround:
```
void foo(scope lazy void* p);

struct S {
    this(int a) {
        auto b = &this; // temporary variable as workaround.
        foo(b);
    }
}
```

--
February 02, 2023
https://issues.dlang.org/show_bug.cgi?id=21290

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid

--