1 // PR c++/60265
2 // { dg-do compile { target c++11 } }
3 
4 // [namespace.udecl]/7 shall not name a scoped enumerator.
5 // (so unscoped enumerator is ok)
6 
7 namespace A
8 {
9   enum E { V };
10 
11   using E::V;
12 }
13 
foo()14 void foo()
15 {
16   using A::E::V;
17 }
18 
19 using A::E::V;
20 
21 enum F { U };
22 
23 using F::U;
24