c++: Find parameter pack in typedef in lambda [92909].
authorJason Merrill <jason@redhat.com>
Sat, 14 Mar 2020 21:10:39 +0000 (17:10 -0400)
committerJason Merrill <jason@redhat.com>
Sat, 14 Mar 2020 21:13:25 +0000 (17:13 -0400)
commitb3b0c671cc341fd04afc045a8d42d7a845d7f73c
tree317dc05d5c474274de96ed7db49122a63a509690
parentc393c99d3dc8329dc1a36011e70faa9700185051
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.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-variadic10.C [new file with mode: 0644]