8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-variadic7.C
Jason Merrill 6bdfada421 tree.c (cp_expr_location): New.
* tree.c (cp_expr_location): New.

	* cp-tree.h (cp_expr_loc_or_loc): New.
	* call.c, cvt.c, constexpr.c, constraint.cc, cp-gimplify.c, decl.c,
	error.c, init.c, lex.c, parser.c, pt.c, semantics.c, typeck.c,
	typeck2.c: Use it instead of EXPR_LOC_OR_LOC.

From-SVN: r261728
2018-06-18 20:38:44 -04:00

15 lines
199 B
C

// PR c++/86200
// { dg-do compile { target c++11 } }
template<typename ... Args>
static void foo()
{
[](Args, int x) { // { dg-error "packs not expanded" }
x;
};
}
int main()
{
foo();
}