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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:e272cf95ba048fde60b21aee046c9ca9c9264425

commit r12-6919-ge272cf95ba048fde60b21aee046c9ca9c9264425
Author: Patrick Palka <ppa...@redhat.com>
Date:   Fri Jan 28 08:18:28 2022 -0500

    c++: var tmpl w/ dependent constrained auto type [PR103341]

    When deducing the type of a variable template (or templated static data
    member) with a constrained auto type, we might need its template
    arguments for satisfaction since the constraint could depend on them.

            PR c++/103341

    gcc/cp/ChangeLog:

            * decl.cc (cp_finish_decl): Pass the template arguments of a
            variable template specialization or a templated static data
            member to do_auto_deduction when the auto is constrained.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/concepts-class4.C: New test.
            * g++.dg/cpp2a/concepts-var-templ2.C: New test.

Reply via email to