diff options
author | Jason Merrill <jason@redhat.com> | 2019-02-22 01:47:37 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-02-22 01:47:37 -0500 |
commit | 9adf74a36e569e555cfe41ba0304b0379e72f9c5 (patch) | |
tree | 1f4db50e7e402dae2891a15270c126465e2414d9 /gcc/tree-ssa-structalias.c | |
parent | d36b4bf75260d7228025af59fd811e3fd48993c6 (diff) | |
download | gcc-9adf74a36e569e555cfe41ba0304b0379e72f9c5.zip gcc-9adf74a36e569e555cfe41ba0304b0379e72f9c5.tar.gz gcc-9adf74a36e569e555cfe41ba0304b0379e72f9c5.tar.bz2 |
PR c++/87685 - generic lambda 'this' capture error.
The standard says that in a generic lambda we should speculatively capture
'this' if we see a call to an overload set that contains a non-static member
function, but it seems wrong to reject the program if we can't capture,
since it might not actually be needed.
* lambda.c (lambda_expr_this_capture): Change add_capture_p to int.
(maybe_generic_this_capture): Pass -1.
From-SVN: r269095
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
0 files changed, 0 insertions, 0 deletions