diff options
author | Jason Merrill <jason@redhat.com> | 2023-03-06 21:36:28 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2023-03-07 14:34:10 -0500 |
commit | 4f181f9c7ee3efc509d185fdfda33be9018f1611 (patch) | |
tree | 2cf9f6fe3d9b7ca4c707d21d93597c8b930a97b9 /libgcc | |
parent | f875857e008c4415c32d2f15e88f04c3e42719ea (diff) | |
download | gcc-4f181f9c7ee3efc509d185fdfda33be9018f1611.zip gcc-4f181f9c7ee3efc509d185fdfda33be9018f1611.tar.gz gcc-4f181f9c7ee3efc509d185fdfda33be9018f1611.tar.bz2 |
c++: static lambda tsubst [PR108526]
A missed piece of the patch for static operator(): in tsubst_function_decl,
we don't want to replace the first parameter with a new closure pointer if
operator() is static.
PR c++/108526
PR c++/106651
gcc/cp/ChangeLog:
* pt.cc (tsubst_function_decl): Don't replace the closure
parameter if DECL_STATIC_FUNCTION_P.
gcc/testsuite/ChangeLog:
* g++.dg/cpp23/static-operator-call5.C: Pass -g.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions