http://d.puremagic.com/issues/show_bug.cgi?id=10055
Summary: Incorrect attribute merging in destructor building
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kenji Hara <[email protected]> 2013-05-10 00:42:05 PDT ---
This is very similar to bug 10053.
This code works with 2.062, but fails with git head.
struct S1
{
pure ~this() { }
}
struct S2
{
~this() { }
}
struct SX
{
S1 s1;
S2 s2;
}
Output:
Error: pure function 'test.SX.~this' cannot call impure function
'test.S2.~this'
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------