[Bug c++/80309] [7 Regression] ICE: canonical types differ for identical types _Args2 and _Args2

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 5 19:11:00 GMT 2017


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Apr  5 19:10:17 2017
New Revision: 246717

URL: https://gcc.gnu.org/viewcvs?rev=246717&root=gcc&view=rev
Log:
        PR c++/80309
        * pt.c (canonical_type_parameter): Use vec_safe_grow_cleared instead
        of a loop doing vec_safe_push of NULL.  Formatting fixes.
        (rewrite_template_parm): Copy TEMPLATE_PARM_PARAMETER_PACK from oldidx
        to newidx before calling canonical_type_parameter on newtype.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c


More information about the Gcc-bugs mailing list