Bug 23226 – druntime does not compile with -preview=nosharedaccess

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-07-01T14:48:34Z
Last change time
2023-03-02T11:08:44Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Atila Neves

Comments

Comment #0 by atila.neves — 2022-07-01T14:48:34Z
Trying to compile druntime with -preview=nosharedaccess fails miserably. There are several issues, but dustmite reduces dmd commit 4513d32447ddb1221581dd555b04851db6ec8afd to the following code from core.bitop: struct BitRange { const(size_t) bits; this(const(size_t)) { bits++ ; } } N softBitswap()() { }
Comment #1 by dlang-bot — 2022-08-11T10:41:19Z
@dkorpel created dlang/dmd pull request #14362 "Issue 23226 - allow access to non-shared `this`" mentioning this issue: - Issue 23226 - allow access to non-shared `this` https://github.com/dlang/dmd/pull/14362
Comment #2 by dlang-bot — 2022-08-14T14:42:59Z
dlang/dmd pull request #14362 "Issue 23226 - allow access to non-shared `this`" was merged into master: - 1c643bef3cbe1a1c8956058057a176deadc45fd8 by Dennis Korpel: Issue 23226 - allow access to non-shared `this` https://github.com/dlang/dmd/pull/14362
Comment #3 by razvan.nitu1305 — 2023-03-02T11:08:44Z
The actionable item on this bug report has been fixed. If druntime still fails to compile please update druntime to not violate nosharedaccess or post another bug report stating the issue.