List Info

Thread: multiple inheritance




multiple inheritance
user name
2008-05-09 15:12:31
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 ?
-- 
View this message in context: http://www.nabble.com/multiple-inheritance-tp
17155652p17155652.html
Sent from the Sourceware - gdb list mailing list archive at
Nabble.com.


Re: multiple inheritance
user name
2008-05-11 16:26:34
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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )