mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 20:01:31 -05:00
* pt.c (find_parameter_packs_r): Also look at explicit captures. (check_for_bare_parameter_packs): Check current_class_type for lambda context. (extract_locals_r): Handle seeing a full instantiation of a pack. (tsubst_pack_expansion): Likewise. Force lambda capture. * parser.c (cp_parser_lambda_introducer): Don't check_for_bare_parameter_packs. From-SVN: r257627
17 lines
227 B
C
17 lines
227 B
C
// { dg-do compile { target c++14 } }
|
|
|
|
template < typename... T > void sink(T ...){}
|
|
|
|
template < typename... T >
|
|
auto f(T... t){
|
|
[=](auto ... j){
|
|
sink((t + j)...);
|
|
}(t...);
|
|
}
|
|
|
|
int main(){
|
|
f(0);
|
|
f();
|
|
f(0.1,0.2);
|
|
}
|