www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - BUG: Abstract class instantiation

The compiler will let me instantiate a class defined as abstract.  The following
code compiles and runs fine!?!

abstract class Test1
printf("How can this be?\n");

int main ( char [] [] args ) 
Test1 t1 = new Test1();
return 1;

This code compiles and runs ok outputting the message in the abstract class
constructor.  I believe this code should fail at compilation? 

May 05 2004