2 // { dg-do compile { target c++11 } }
4 // [namespace.udecl] In a using-declaration used as a
5 // member-declaration, the nested-name-specifier shall name a base
6 // class of the class being defined
7 // (this changes in C++2a)
12 using e::a; // { dg-bogus "redeclaration" "P1787" }
13 // { dg-error "enum" "" { target { ! c++2a } } .-1 }
20 using E::A; // { dg-error "not a base" "" { target { ! c++2a } } }
21 // { dg-error "conflicts" "" { target c++2a } .-1 }
29 using N::E::B; // { dg-error "enum" "" { target { ! c++2a } } }