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

--- Comment #3 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:9f4c41147a41d08a74990eafe69a1064a3c13435

commit r11-7993-g9f4c41147a41d08a74990eafe69a1064a3c13435
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon Apr 5 14:26:03 2021 -0400

    c++: enum in generic lambda in template [PR95317]

    Here we weren't instantiating the enumerators because the arglist still had
    the template parameter for the generic lambda, so looking one up failed. 
We
    need to instantiate if the non-lambda enclosing scope is non-dependent.

    gcc/cp/ChangeLog:

            PR c++/95317
            * pt.c (lookup_template_class_1): Do tsubst_enum when
            tsubsting a generic lambda.

    gcc/testsuite/ChangeLog:

            PR c++/95317
            * g++.dg/cpp1y/lambda-generic-enum1.C: New test.

Reply via email to