[Bug c++/92556] [10 Regression] ICE if using dependent name inside lambda expression in simple-requirement since r10-3735-gcb57504a55015891

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 15 14:09:00 GMT 2020


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 <jason@gcc.gnu.org>:

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

commit r10-6649-g1e166191ef330f3491d405bf3eb09b2b796c9b0e
Author: Jason Merrill <jason@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  <jason@redhat.com>

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


More information about the Gcc-bugs mailing list