Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic20.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/90448 // { dg-do compile { target c++14 } } template<class ... Ts> int fooV(Ts ... ts) { auto L = [](auto ... a) { auto M = [](decltype(a) ... b) -> void { }; return M; }; decltype(L(L, ts...)) (*fp)(decltype(L), decltype(ts) ...) = L; return 0; } int run2 = fooV("BC", 3, 2.77, 'A', float{}, short{}, unsigned{});