aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-03-06 21:36:28 -0500
committerJason Merrill <jason@redhat.com>2023-03-07 14:34:10 -0500
commit4f181f9c7ee3efc509d185fdfda33be9018f1611 (patch)
tree2cf9f6fe3d9b7ca4c707d21d93597c8b930a97b9 /gcc/fold-const.cc
parentf875857e008c4415c32d2f15e88f04c3e42719ea (diff)
downloadgcc-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 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions