This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Egcs g++ allows to create object of abstract class ?!
- To: Sergei Organov <osv at javad dot ru>
- Subject: Re: Egcs g++ allows to create object of abstract class ?!
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 31 May 1998 19:47:44 -0300
- Cc: Egcs Bugs <egcs-bugs at cygnus dot com>
- References: <357126A3.1DCA9762@javad.ru>
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