1 // Test for P0195R2 variadic using. 2 // { dg-do compile { target c++11 } } 3 // { dg-options "" } 4 5 struct A { void f(); }; 6 struct B { void f(int); }; 7 8 template <class... Bases> struct C: Bases... 9 { 10 using Bases::f...; // { dg-warning "pack expansion" "" { target c++14_down } } 11 }; 12 main()13int main() 14 { 15 C<A,B> c; 16 c.f(); 17 c.f(42); 18 } 19 20