diff options
author | Jason Merrill <jason@redhat.com> | 2020-10-14 14:55:04 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-10-14 15:44:29 -0400 |
commit | 270c5a982ccb4ef83bd9ad37d39cf47461acb55a (patch) | |
tree | 47903886f6b3ced46462dd0d088f76f59d1c4a9c /libgo | |
parent | 8f8cba46b89ad16bac2ce58d554c25b54b0e7c7f (diff) | |
download | gcc-270c5a982ccb4ef83bd9ad37d39cf47461acb55a.zip gcc-270c5a982ccb4ef83bd9ad37d39cf47461acb55a.tar.gz gcc-270c5a982ccb4ef83bd9ad37d39cf47461acb55a.tar.bz2 |
c++: Diagnose bogus variadic lambda. [PR97358]
If the lambda has a capture pack, it cannot be used unexpanded within the
body of the lambda. If you want to expand the pack across multiple lambdas,
don't capture the whole pack.
gcc/cp/ChangeLog:
PR c++/97358
* pt.c (check_for_bare_parameter_packs): Diagnose use of
capture pack.
gcc/testsuite/ChangeLog:
PR c++/97358
* g++.dg/cpp0x/lambda/lambda-variadic11.C: New test.
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions