[Issue 9246] New: safe struct with dtor doesn't generate safe opAssign
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 31 11:03:06 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9246
Summary: safe struct with dtor doesn't generate safe opAssign
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: overcheck at gmail.com
--- Comment #0 from Shan-Yung Yang <overcheck at gmail.com> 2012-12-31 11:03:04 PST ---
@safe struct S {
~this(){} // need dtor to reproduce
}
@safe void main(){
S s1, s2;
s1 = s2; // error
}
Compiler message: safe function 'main' cannot call system function 'opAssign'
--
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