1 // PR c++/56793
2 // { dg-require-effective-target c++11 }
3 
4 struct A
5 {
6   enum struct B {X, Y} b;
7 } a;
8 
9 enum struct D {X,Y};
10 struct C { } c;
11 
main()12 int main ()
13 {
14   if (a.b == a.B::Y)
15     a.b = A::B::X;
16 
17   c.D::Y;			// { dg-error "not a member" }
18 }
19