8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-variadic10.C
Jason Merrill b3b0c671cc c++: Find parameter pack in typedef in lambda [92909].
find_parameter_packs_r doesn't look through typedefs, which is normally
correct, but that means we need to handle their declarations specially.

gcc/cp/ChangeLog
2020-03-14  Jason Merrill  <jason@redhat.com>

	PR c++/92909
	* pt.c (find_parameter_packs_r): [DECL_EXPR]: Walk
	DECL_ORIGINAL_TYPE of a typedef.
2020-03-14 17:13:25 -04:00

13 lines
194 B
C

// PR c++/92909
// { dg-do compile { target c++11 } }
template <class ... Ts>
void foo()
{
[]
{
using T = Ts;
}(); // { dg-error "not expanded" }
}
template void foo<>();