This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Egcs g++ allows to create object of abstract class ?!


Sergei Organov <osv@javad.ru> writes:

> Egcs-1.0.2 silently compiles the following code:

So does the May 25th snapshot :-(

>   // The only way to satisfy this call is to create 
>   // temporary object of abstract class A.

You're right, this should produce a compile-time error.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]