August 30, 2020 [Issue 21210] std.traits : isAssignable false positive on disabled copy struct | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21210 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> --- @Geod24 created dlang/phobos pull request #7612 "Fix 21210: std.traits : isAssignable false positive on disabled copy struct" fixing this issue: - Fix 21210: std.traits : isAssignable false positive on disabled copy struct `isAssignable` would previously return `true` for non-copyable types, even though code that tried to use an lvalue would not compile. This behavior was originally found when implementing `-preview=in`. With the new -preview=in check, the const-folding seemed to be a bit too aggressive when an rvalue is passed, meaning that the check might fail (probably due to the code that initialize the temporary). https://github.com/dlang/phobos/pull/7612 -- |
August 31, 2020 [Issue 21210] std.traits : isAssignable false positive on disabled copy struct | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21210 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/phobos pull request #7612 "Fix 21210: std.traits : isAssignable false positive on disabled copy struct" was merged into master: - f6bf36d155a2749e31b32641d9f11bf34e3c1c43 by Geod24: Fix 21210: std.traits : isAssignable false positive on disabled copy struct `isAssignable` would previously return `true` for non-copyable types, even though code that tried to use an lvalue would not compile. This behavior was originally found when implementing `-preview=in`. With the new -preview=in check, the const-folding seemed to be a bit too aggressive when an rvalue is passed, meaning that the check might fail (probably due to the code that initialize the temporary). https://github.com/dlang/phobos/pull/7612 -- |
Copyright © 1999-2021 by the D Language Foundation