re PR c++/80309 (ICE: canonical types differ for identical types _Args2 and _Args2)
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Apr 2017 19:10:17 +0000 (21:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Apr 2017 19:10:17 +0000 (21:10 +0200)
commit98568e0337010d21eb43a6939070162f89aad841
treea88f0920e818d5625e3a88928da6fe6af397f5f0
parent37d6671d0727e6773e1cd713f3b3589974270357
re PR c++/80309 (ICE: canonical types differ for identical types _Args2 and _Args2)

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.

From-SVN: r246717
gcc/cp/ChangeLog
gcc/cp/pt.c