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

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

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

commit r10-9069-ge89ebd3e896f27d4afc400044d5a2b69cb524bcb
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Oct 8 15:43:26 2020 -0400

    c++: Fix member alias template in C++17 and up. [PR96805]

    Here we're trying to push into a<T>::c<N> in order to instantiate t<N>, but
    were building a TYPENAME_TYPE for it because a<T> isn't open yet.  Don't
    do that when we know we're trying to enter the scope.

    gcc/cp/ChangeLog:

            PR c++/96805
            PR c++/96199
            * pt.c (tsubst_aggr_type): Don't build a TYPENAME_TYPE when
            entering_scope.
            (tsubst_template_decl): Use tsubst_aggr_type.

    gcc/testsuite/ChangeLog:

            PR c++/96805
            * g++.dg/cpp0x/alias-decl-pr96805.C: New test.

Reply via email to