[Issue 9079] New: 'delete this' no longer compiles

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 25 10:39:41 PST 2012


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

           Summary: 'delete this' no longer compiles
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: siegelords_abode at yahoo.com


--- Comment #0 from siegelords_abode at yahoo.com 2012-11-25 10:39:40 PST ---
Compiles fine with 2.060 but fails with 2.061 beta.

class B
{
    void test()
    {
        delete this;
    }
}

// test.d(5): Error: Cannot modify '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