[Bug 424838] Re: g++ fails on qualified name in multiple inheritance

Bug Watch Updater 424838 at bugs.launchpad.net
Sat Mar 23 21:27:32 UTC 2013


** Changed in: gcc
   Importance: Unknown => Low

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.4 in Ubuntu.
https://bugs.launchpad.net/bugs/424838

Title:
  g++ fails on qualified name in multiple inheritance

Status in The GNU Compiler Collection:
  Fix Released
Status in “gcc-4.4” package in Ubuntu:
  Incomplete

Bug description:
  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’
  */

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/424838/+subscriptions




More information about the foundations-bugs mailing list