From: Paolo Carlini Date: Tue, 24 Mar 2015 16:43:33 +0000 (+0000) Subject: re PR c++/60130 (Sorry, unimplemented: mangling argument_pack_select) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5cb9e0898da46f90b6d42c0fcc5e428fb93ed2f7;p=gcc.git re PR c++/60130 (Sorry, unimplemented: mangling argument_pack_select) 2015-03-24 Paolo Carlini PR c++/60130 * g++.dg/cpp0x/vt-60130.C: New. From-SVN: r221637 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4a29edfa231..dadd843921d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-03-24 Paolo Carlini + + PR c++/60130 + * g++.dg/cpp0x/vt-60130.C: New. + 2015-03-24 Paolo Carlini PR c++/61971 diff --git a/gcc/testsuite/g++.dg/cpp0x/vt-60130.C b/gcc/testsuite/g++.dg/cpp0x/vt-60130.C new file mode 100644 index 00000000000..50662dbe07e --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/vt-60130.C @@ -0,0 +1,21 @@ +// PR c++/60130 +// { dg-do compile { target c++11 } } + +#include + +template +S f1(F f, T... x) +{ + return std::get<0>(std::make_tuple(f(x)...)); +} + +template +int f2(const T... x) +{ + return std::get<0>(std::make_tuple(f1([](int n){return n;}, x)...)); +} + +int main() +{ + return f2(42); +}