aboutsummaryrefslogtreecommitdiff
path: root/libphobos/libdruntime/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2021-04-09 16:43:50 -0400
committerJason Merrill <jason@redhat.com>2021-04-10 00:06:55 -0400
commite89055f90cff9fb6f565b9374e1ab74f805682fb (patch)
tree364d0e0c09c1c61b39d4fd657fa515cc033354a5 /libphobos/libdruntime/gcc
parent3115aba8d856faadaab5c79bc4823a39ebc21bb2 (diff)
downloadgcc-e89055f90cff9fb6f565b9374e1ab74f805682fb.zip
gcc-e89055f90cff9fb6f565b9374e1ab74f805682fb.tar.gz
gcc-e89055f90cff9fb6f565b9374e1ab74f805682fb.tar.bz2
c++: pack in base-specifier in lambda [PR100006]
Normally cp_parser_base_clause prevents unexpanded packs, but in a lambda check_for_bare_parameter_packs allows it. Then we weren't finding the pack when scanning the lambda body. This doesn't fix a valid variant like template <class... Ts> void sink (Ts&&...); template <class... Ts> void f() { sink ([] { struct S : Ts { }; }...); } int main() { f<int>(); } but that's a much bigger project. gcc/cp/ChangeLog: PR c++/100006 * pt.c (find_parameter_packs_r) [TAG_DEFN]: Look into bases. gcc/testsuite/ChangeLog: PR c++/100006 * g++.dg/cpp0x/lambda/lambda-variadic13.C: New test.
Diffstat (limited to 'libphobos/libdruntime/gcc')
0 files changed, 0 insertions, 0 deletions