Public bug reported:
struct base{
int x;
base():x(){}
virtual~base(){}
};
struct aa:public base{
};
struct ab:public base{
};
struct ba:public aa,ab{
};
struct bb:public aa,ab{
};
struct final:public ba,bb{
};
int main(){
final obj;
obj.ba::aa::x=5;
}
/*
Expected behaviour:
The member x accessed by the path final::ba::aa::x in main()::obj is changed to
5
Actual behaviour:
g++ fails to compile this program generating:
test.cpp: In function ‘int main()’:
test.cpp:24: error: ‘aa’ is an ambiguous base of ‘final’
*/
** Affects: gcc-4.4 (Ubuntu)
Importance: Undecided
Status: New
--
g++ fails on qualified name in multiple inheritance
https://bugs.launchpad.net/bugs/424838
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs