8sa1-gcc/gcc/testsuite/g++.dg/cpp1z/using2.C
Jason Merrill f4da28a0ab Implement P0195R2, C++17 variadic using.
* parser.c (cp_parser_using_declaration): Handle ellipsis and comma.
	* pt.c (tsubst_decl): Handle pack expansion in USING_DECL_SCOPE.
	* error.c (dump_decl): Likewise.

From-SVN: r244246
2017-01-09 16:51:08 -05:00

20 lines
328 B
C

// Test for P0195R2 variadic using.
// { dg-do compile { target c++11 } }
// { dg-options "" }
struct A { void f(); };
struct B { void f(int); };
template <class... Bases> struct C: Bases...
{
using Bases::f...; // { dg-warning "pack expansion" "" { target c++14_down } }
};
int main()
{
C<A,B> c;
c.f();
c.f(42);
}