aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/using-enum-2.C
blob: 0738c802b3446927178e57a089ccb1ced9e9613e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/60265
// { dg-do compile { target c++11 } }

namespace A
{
  enum class E { V };

  using E::V;        // { dg-error "not a namespace or unscoped enum" }
}

void foo()
{
  using A::E::V;     // { dg-error "not a namespace or unscoped enum" }
}

using A::E::V;       // { dg-error "not a namespace or unscoped enum" }

enum class F { U };

using F::U;          // { dg-error "not a namespace or unscoped enum" }