aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2021-04-05 22:50:44 -0400
committerJason Merrill <jason@redhat.com>2021-04-06 00:12:57 -0400
commit55f40d968b0bd3be4478a9481e829a99ee0fa04f (patch)
tree659592b42ad51c77fbb9ac7f710f20e5f47be509 /gcc/tree-vect-loop.c
parent66de517b1c1dd22df7914f8e9a083cd5a73adbe2 (diff)
downloadgcc-55f40d968b0bd3be4478a9481e829a99ee0fa04f.zip
gcc-55f40d968b0bd3be4478a9481e829a99ee0fa04f.tar.gz
gcc-55f40d968b0bd3be4478a9481e829a99ee0fa04f.tar.bz2
c++: mangling of lambdas in default args [PR91241]
In this testcase, the parms remembered in LAMBDA_EXPR_EXTRA_SCOPE are no longer the parms of the FUNCTION_DECL they have as their DECL_CONTEXT, so we were mangling both lambdas as parm #0. But since the parms are numbered from right to left we don't need to need to find them in the FUNCTION_DECL, we can measure their own DECL_CHAIN. gcc/cp/ChangeLog: PR c++/91241 * mangle.c (write_compact_number): Add sanity check. (write_local_name): Use list_length for parm number. gcc/testsuite/ChangeLog: PR c++/91241 * g++.dg/abi/lambda-defarg1.C: New test.
Diffstat (limited to 'gcc/tree-vect-loop.c')
0 files changed, 0 insertions, 0 deletions