[Issue 10053] New: struct member with pure dtor forces declared to be pure, too
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 9 14:45:16 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10053
Summary: struct member with pure dtor forces declared to be
pure, too
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: henning at still-hidden.de
--- Comment #0 from Henning Pohl <henning at still-hidden.de> 2013-05-09 14:45:15 PDT ---
struct S1
{
~this() pure { }
}
struct S2
{
S1 s;
~this() { }
}
void main() { }
2.063a:
-----
Error: pure function 'main.S2.~this' cannot call impure function
'main.S2.~this'
-----
--
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