Thread overview
[Issue 23035] -preview=rvaluerefparam causes @system function to be @safe
Apr 18, 2022
Atila Neves
Apr 18, 2022
Stanislav Blinov
Apr 19, 2022
Atila Neves
Sep 09, 2022
Atila Neves
April 18, 2022
https://issues.dlang.org/show_bug.cgi?id=23035

Atila Neves <atila.neves@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid, safe

--
April 18, 2022
https://issues.dlang.org/show_bug.cgi?id=23035

Stanislav Blinov <stanislav.blinov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stanislav.blinov@gmail.com

--- Comment #1 from Stanislav Blinov <stanislav.blinov@gmail.com> ---
That assert fails for me regardless of -preview setting. Probably because opPostMove decayed from the source and isn't actually being used. Which would make `move(s)` @safe @nogc nothrow pure.

(IMHO, it should just stay that way. Introduction of proper move ctors would be much more preferable to maintaining that ad-hoc crutch).

--
April 19, 2022
https://issues.dlang.org/show_bug.cgi?id=23035

--- Comment #2 from Atila Neves <atila.neves@gmail.com> ---
That's... weird, especially since that assert is part of the druntime test suite.

--
September 09, 2022
https://issues.dlang.org/show_bug.cgi?id=23035

Atila Neves <atila.neves@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Atila Neves <atila.neves@gmail.com> ---
I can no longer reproduce this.

--