www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2453] New: It is possible to create instances of abstract classes with ClassInfo.create

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2453

           Summary: It is possible to create instances of abstract classes
                    with ClassInfo.create
           Product: D
           Version: 1.036
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: samukha voliacable.com


abstract class C
{
}

void main()
{
    auto c = cast(C)C.classinfo.create();
    assert(!c); // should pass
}


-- 
Nov 13 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2453


samukha voliacable.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #1 from samukha voliacable.com  2008-11-25 08:06 -------


*** This bug has been marked as a duplicate of 1692 ***


-- 
Nov 25 2008