c++/6612: g++ regression?

lerdsuwa@gcc.gnu.org lerdsuwa@gcc.gnu.org
Fri May 10 09:47:00 GMT 2002


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



More information about the Gcc-bugs mailing list