[Issue 6320] New: non-pure constructor can be called using new
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 14 21:23:46 PDT 2011
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: nobody at puremagic.com
ReportedBy: yebblies at gmail.com
--- Comment #0 from yebblies <yebblies at 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: -------
More information about the Digitalmars-d-bugs
mailing list