aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-expr.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2025-04-14 12:18:06 -0400
committerJason Merrill <jason@redhat.com>2025-04-25 11:51:07 -0400
commit44e31eb265ba1984638908466a88095744a88709 (patch)
treeb2fcca467c6ddcbb3a32d937864be7ba84c1db0c /gcc/fortran/trans-expr.cc
parentb13bb5045c5010f38169b9786819a024f64fb59d (diff)
downloadgcc-44e31eb265ba1984638908466a88095744a88709.zip
gcc-44e31eb265ba1984638908466a88095744a88709.tar.gz
gcc-44e31eb265ba1984638908466a88095744a88709.tar.bz2
c++: pruning non-captures in noexcept lambda [PR119764]
The patch for PR87185 fixed the ICE without fixing the underlying problem, that we were failing to find the declaration of the capture proxy that we are trying to decide whether to prune. Fixed by looking at the right index in stmt_list_stack. Since this changes captures, it changes the ABI of noexcept lambdas; we haven't worked hard to maintain lambda capture ABI, but it's easy enough to control here. PR c++/119764 PR c++/87185 gcc/cp/ChangeLog: * lambda.cc (insert_capture_proxy): Handle noexcept lambda. (prune_lambda_captures): Likewise, in ABI v21. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/lambda/lambda-noexcept1.C: New test.
Diffstat (limited to 'gcc/fortran/trans-expr.cc')
0 files changed, 0 insertions, 0 deletions