Bug 2453 – It is possible to create instances of abstract classes with ClassInfo.create

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-11-14T01:50:00Z
Last change time
2014-03-01T00:36:17Z
Assigned to
bugzilla
Creator
samukha

Comments

Comment #0 by samukha — 2008-11-14T01:50:11Z
abstract class C { } void main() { auto c = cast(C)C.classinfo.create(); assert(!c); // should pass }
Comment #1 by samukha — 2008-11-25T08:06:13Z
*** This bug has been marked as a duplicate of 1692 ***