* lambda.c (is_capture_proxy_with_ref): New. (insert_capture_proxy): Don't set DECL_CAPTURED_VARIABLE from a COMPONENT_REF. * expr.c (mark_use): Use is_capture_proxy_with_ref. * constexpr.c (potential_constant_expression_1): Likewise. * semantics.c (process_outer_var_ref): Likewise. From-SVN: r257325
13 lines
164 B
C
13 lines
164 B
C
// PR c++/84160
|
|
// { dg-do compile { target c++11 } }
|
|
|
|
template < typename ... T > void f (T ... a)
|
|
{
|
|
[a ...] { [a ...] {}; };
|
|
}
|
|
|
|
void g ()
|
|
{
|
|
f < int > (0);
|
|
}
|