diff options
author | Jason Merrill <jason@redhat.com> | 2020-02-15 14:48:08 +0100 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-02-15 14:59:32 +0100 |
commit | 1e166191ef330f3491d405bf3eb09b2b796c9b0e (patch) | |
tree | 3c7f342cbc19b7cd380c94f786b955ffc31417ad /libgo | |
parent | d71365427670a791c5b54bfec6e3d41210844a8a (diff) | |
download | gcc-1e166191ef330f3491d405bf3eb09b2b796c9b0e.zip gcc-1e166191ef330f3491d405bf3eb09b2b796c9b0e.tar.gz gcc-1e166191ef330f3491d405bf3eb09b2b796c9b0e.tar.bz2 |
c++: Fix lambda in atomic constraint.
find_template_parameters needs to find the mention of T in the lambda.
Fixing that leaves this as a hard error, which may be surprising but is
consistent with lambdas in other SFINAE contexts like template argument
deduction.
gcc/cp/ChangeLog
2020-02-15 Jason Merrill <jason@redhat.com>
PR c++/92556
* pt.c (any_template_parm_r): Look into lambda body.
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions