https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92556

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:1e166191ef330f3491d405bf3eb09b2b796c9b0e

commit r10-6649-g1e166191ef330f3491d405bf3eb09b2b796c9b0e
Author: Jason Merrill <ja...@redhat.com>
Date:   Sat Feb 15 14:48:08 2020 +0100

    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  <ja...@redhat.com>

        PR c++/92556
        * pt.c (any_template_parm_r): Look into lambda body.

Reply via email to