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

           Summary: non-pure constructor can be called using new
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: yebbl...@gmail.com


--- Comment #0 from yebblies <yebbl...@gmail.com> 2011-07-15 14:18:34 EST ---
The following compiles without error in dmd 2.054

class A {
    this () {
        static int notpure;
        notpure++;
    }
}

pure void main()
{
    auto x = new A();
}

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

Reply via email to