This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80309] [7 Regression] ICE: canonical types differ for identical types _Args2 and _Args2
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Apr 2017 19:10:57 +0000
- Subject: [Bug c++/80309] [7 Regression] ICE: canonical types differ for identical types _Args2 and _Args2
- Auto-submitted: auto-generated
- References: <bug-80309-4@http.gcc.gnu.org/bugzilla/>
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