From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18323 invoked by alias); 12 Nov 2007 15:06:08 -0000 Received: (qmail 18310 invoked by uid 48); 12 Nov 2007 15:06:03 -0000 Date: Mon, 12 Nov 2007 15:06:00 -0000 Message-ID: <20071112150603.18309.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/32402] Error while allocating array of pointers to objects of a pure virtual class In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "gcc at waisse dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg01057.txt.bz2 ------- 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