aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-io.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-04-26 00:19:40 -0400
committerJason Merrill <jason@redhat.com>2022-04-26 16:12:08 -0400
commit9ace5d4dab2ab39072b0f07089621a823580f27c (patch)
tree29717405566f8b37e0082d4d25203d4384bae88d /gcc/gcov-io.cc
parent2579d6124d2f1ecf77c6c599f65cebbf29d00fd1 (diff)
downloadgcc-9ace5d4dab2ab39072b0f07089621a823580f27c.zip
gcc-9ace5d4dab2ab39072b0f07089621a823580f27c.tar.gz
gcc-9ace5d4dab2ab39072b0f07089621a823580f27c.tar.bz2
c++: pack init-capture of unresolved overload [PR102629]
Here we were failing to diagnose that the initializer for the capture pack is an unresolved overload. It turns out that the reason we didn't recognize the deduction failure in do_auto_deduction was that the individual 'auto' in the expansion of the capture pack was still marked as a parameter pack, so we were deducing it to an empty pack instead of failing. PR c++/102629 gcc/cp/ChangeLog: * pt.cc (gen_elem_of_pack_expansion_instantiation): Clear TEMPLATE_TYPE_PARAMETER_PACK on auto. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/lambda-pack-init7.C: New test.
Diffstat (limited to 'gcc/gcov-io.cc')
0 files changed, 0 insertions, 0 deletions