* 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
15 lines
199 B
C
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();
|
|
}
|