[Bug c++/102300] [11 Regression] Qualified name of same template in class template is rejected

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 13 12:08:51 GMT 2022


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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:

https://gcc.gnu.org/g:8d2f59c8e26960df81e054c7afd2ef63171bae05

commit r11-9991-g8d2f59c8e26960df81e054c7afd2ef63171bae05
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Jan 18 18:28:22 2022 -0500

    c++: template-id with current inst qualifier [PR102300]

    The patch for PR41723 properly changed one place to look into the current
    instantiation; now we need to fix this place as well.

    The fix for GCC 12 depends on r12-3643, so this commit also incorporates
    some of those changes.

            PR c++/102300

    gcc/cp/ChangeLog:

            * parser.c (cp_parser_template_name): Use dependent_scope_p.

    gcc/testsuite/ChangeLog:

            * g++.dg/parse/no-typename1.C: Remove expected error.
            * g++.dg/template/nested7.C: New test.


More information about the Gcc-bugs mailing list