Bug 11109 – shared opAssign not called if there is no unshared one

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-23T04:21:41Z
Last change time
2024-12-13T18:11:56Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Denis Shelomovskii
Moved to GitHub: dmd#18679 →

Comments

Comment #0 by verylonglogin.reg — 2013-09-23T04:21:41Z
--- struct S { void* p; // void opAssign(S); // Uncomment to workaround the issue void opAssign(S) shared { } } void main() { S s; shared S ss; ss = s; // Error: cannot implicitly convert expression (s) of type S to shared(S) } ---
Comment #1 by robert.schadek — 2024-12-13T18:11:56Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18679 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB