Compiler Error C2798 (Windows CE 5.0)

Send Feedback

'super::member' is ambiguous

Multiple inherited structures contain the member you referenced with super. You could fix the error by either,

  • Removing B1 or B2 from the inheritance list of D.
  • Changing the name of the data member in B1 or B2.

For example, the following code shows how this error would be generated.

struct B1 {
int i;
};

struct B2 {
int i;
};

struct D : B1, B2 {
void g() {
__super::i = 4;
}
};

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.