multiple inheritance

View: New views
3 Messages — Rating Filter:   Alert me  

multiple inheritance

by darkskill :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

gdb crashed when I set a breakpoint at the last line of these :

struct A
{
    virtual A * me2()
            { return this; }
};
 
struct B
{
    virtual B * me() { return this; };
};
 
 
struct C : public A, public B
{
    C * me() {return this; }
    C * me2() {return this; }
};
 
C test;


How come ?

Re: multiple inheritance

by Daniel Jacobowitz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, May 09, 2008 at 01:12:31PM -0700, darkskill wrote:
> gdb crashed when I set a breakpoint at the last line of these :

What version of GDB?  What platform?  What compiler?

If you are not already, I suggest you get the latest version of GDB
and try that.

--
Daniel Jacobowitz
CodeSourcery

Re: multiple inheritance

by darkskill :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I downloaded the last version of gdb and It works. I feel a little stupid...
Thank you anyway