1 // PR c++/89511
2 // { dg-do compile { target c++11 } }
3 
f()4 void f ()
5 {
6   enum e { a };
7   using e::a; // { dg-error "name enumerator" }
8 }
9 
10 struct S {
11   enum E { A };
12   using E::A; // { dg-error "type .S. is not a base type for type .S." }
13 };
14 
15 namespace N {
16   enum E { B };
17 }
18 
19 struct T {
20   using N::E::B; // { dg-error "using-declaration for non-member at class scope" }
21 };
22