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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Henning Pohl <[email protected]> 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: -------

Reply via email to