http://d.puremagic.com/issues/show_bug.cgi?id=9020

           Summary: This pointer is not the same in constructor as it is
                    in methods
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Malte Skarupke <[email protected]> 2012-11-13 17:29:42 
PST ---
Following test:

int main()
{
    class C
    {
        this()
        {
            this_pointer = &this;
        }
        invariant()
        {
            assert(this_pointer == &this);
        }

        C * this_pointer;
    }
    C c = new C;
    return 0;
}

That assert fires on DMD 2.060

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to