This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 PR gdb/16841] virtual inheritance via typedef cannot find base


Sorry, I forgot about this.

Tom> The code has a loop to deal with multiple inheritance but the test
Tom> doesn't exercise this case.  I think an additional for that would be
Tom> good.

Weimin> Sorry, which case is not exercised? Could it be printing superbase
Weimin> class member in base?

There's this loop in get_baseclass_offset:

+  for (int i = 0; i < TYPE_N_BASECLASSES (vt); i++)

However, all the classes in virtbase2.cc use single inheritance, so when
testing, the loop only loops once.  I think it would be good to test a
multiple inheritance case.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]