[Issue 11109] New: shared opAssign not colled if there is no unshared one
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 23 04:21:42 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11109
Summary: shared opAssign not colled if there is no unshared one
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-09-23 15:21:41 MSD ---
---
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)
}
---
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list