[Bug c++/32402] Error while allocating array of pointers to objects of a pure virtual class
gcc at waisse dot org
gcc-bugzilla@gcc.gnu.org
Mon Nov 12 15:06:00 GMT 2007
------- Comment #2 from gcc at waisse dot org 2007-11-12 15:06 -------
same kind of problem here, I'm currently porting an application from PGI/MFC to
gcc/QT and I'm not able to build this code with the error message :
/opt/cimlib/gcc_scali/AssembleurLocalPetsc.h:49: error: cannot allocate an
object of abstract type ÂCimSystemeLineaire::ALPetscParÂ
/opt/cimlib/gcc_scali/AssembleurLocalPetsc.h:33: note: because the following
virtual functions are pure within ÂCimSystemeLineaire::ALPetscParÂ:
/opt/cimlib/gcc_scali/AssembleurLocal.h:36: note: virtual CIMint
CimSystemeLineaire::AssembleurLocal::ajout_contributions_matrice(CIMint,
CIMint*, CIMint*, CIMdouble*)
/opt/cimlib/gcc_scali/AssembleurLocal.h:70: note: virtual CIMint
CimSystemeLineaire::AssembleurLocal::ajout_contributions_second_membre(CIMint,
CIMint*, CIMdouble*)
This happens with a create() method returning a new object, depending on the
implementation of the abstract class ( some kind of virtual creator with a
differnt code for each implementation ).
--
gcc at waisse dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc at waisse dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32402
More information about the Gcc-bugs
mailing list