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

--- Comment #8 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:a2531859bf5bf6cf1f29c0dca85fd26e80904a5d

commit r11-7931-ga2531859bf5bf6cf1f29c0dca85fd26e80904a5d
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Mar 30 20:31:18 2021 -0400

    c++: Alias template in pack expansion [PR99445]

    In this testcase, iterative_hash_template_arg checks
    alias_template_specialization_p to determine whether to treat a type as a
    dependent alias, and structural_comptypes checks
    dependent_alias_template_spec_p.  Normally that difference isn't a problem
    because canonicalizing template arguments strips non-dependent aliases, but
    that wasn't happening for the pack expansion.  Fixed thus.

    gcc/cp/ChangeLog:

            PR c++/99445
            * tree.c (strip_typedefs): Handle TYPE_PACK_EXPANSION.

    gcc/testsuite/ChangeLog:

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

Reply via email to