This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6612: g++ regression?
- From: lerdsuwa at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, trobin at kde dot org
- Date: 10 May 2002 16:47:03 -0000
- Subject: Re: c++/6612: g++ regression?
- Reply-to: lerdsuwa at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, trobin at kde dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ regression?
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Fri May 10 09:47:02 2002
State-Changed-Why:
Not a gcc bug. There is a mistake in your code:
In member function VDocument::deselect:
m_selection.take(&object);
should be replaced by
m_selection.take(object);
gcc was trying to convert "&object" which has the type
"VObject *" to "const VObject &" via the constructor
"VObject::VObject(VObject &, VState)" which requires
instantiation of abstract type.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6612