[Bug c++/79549] [c++1z] ICE in tsubst, at cp/pt.c:13474 with partial specialization of auto... template parameter pack
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 10 16:04:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79549
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed May 10 15:56:09 2017
New Revision: 247842
URL: https://gcc.gnu.org/viewcvs?rev=247842&root=gcc&view=rev
Log:
PR c++/79549 - C++17 ICE with non-type auto template parameter pack
* pt.c (convert_template_argument): Just return an argument pack.
(coerce_template_parameter_pack, template_parm_to_arg)
(extract_fnparm_pack, make_argument_pack, tsubst_template_args)
(tsubst_decl, tsubst, type_unification_real, unify_pack_expansion):
Don't set the type of a NONTYPE_ARGUMENT_PACK.
* parser.c (make_char_string_pack, make_string_pack): Likewise.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list