1 // { dg-do assemble  }
2 // Bug: g++ silently mangles the second 'B' to 'A::B', so the definition is
3 // lost.
4 
5 struct A {
6   enum B { };
7 };
8 
9 struct C: public A {
10   enum B { };
11   void foo (C::B);
12 };
13