diff options
author | Jason Merrill <jason@redhat.com> | 2022-04-21 17:24:07 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-04-25 23:54:02 -0400 |
commit | 65735d21ac410463126114c572999682f987972c (patch) | |
tree | 44f743f3468b3ce2611a1c6c52181b3cf7b86bd2 /libssp/strcpy-chk.c | |
parent | c83b9c54d9dee2dce5d8268472a745b013d166cc (diff) | |
download | gcc-65735d21ac410463126114c572999682f987972c.zip gcc-65735d21ac410463126114c572999682f987972c.tar.gz gcc-65735d21ac410463126114c572999682f987972c.tar.bz2 |
c++: generic lambda fn parm pack [PR104624]
Parameter packs from the enclosing context can be used unexpanded in a
lambda that is itself part of a pack expansion, but not packs that are part
of the lambda itself. We already check for capture packs; we also need to
check for function parameter packs of the lambda call operator.
PR c++/104624
gcc/cp/ChangeLog:
* pt.cc (check_for_bare_parameter_packs): Check for lambda
function parameter pack.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1y/lambda-generic-variadic22.C: New test.
Diffstat (limited to 'libssp/strcpy-chk.c')
0 files changed, 0 insertions, 0 deletions