(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
using-enum-1.C
// PR c++/60265
// { dg-do compile { target c++11 } }

// [namespace.udecl]/7 shall not name a scoped enumerator.
// (so unscoped enumerator is ok)

namespace A
{
  enum E { V };

  using E::V;
}

void foo()
{
  using A::E::V;
}

using A::E::V;

enum F { U };

using F::U;