PR c++/80396 - built-in for make_integer_sequence.
authorJason Merrill <jason@redhat.com>
Tue, 23 May 2017 20:14:01 +0000 (16:14 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 23 May 2017 20:14:01 +0000 (16:14 -0400)
commitf0c1ade45a7488e97c8d6c3aababec5c9d04f609
tree59a1364497c81860c16d0237d89f45ebbc6be599
parentf6744083c85b7b7469401ef9ce2e1014b7bf548f
PR c++/80396 - built-in for make_integer_sequence.

* pt.c (builtin_pack_fn_p, builtin_pack_call_p)
(expand_integer_pack, expand_builtin_pack_call): New.
(find_parameter_packs_r): Check builtin_pack_call_p.
(check_for_bare_parameter_packs): Handle it.
(tsubst_pack_expansion): Call expand_builtin_pack_call.
(declare_integer_pack): New.
(init_template_processing): Call it.
* decl2.c (mark_used): Check builtin_pack_fn_p.

From-SVN: r248384
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/doc/extend.texi
gcc/testsuite/g++.dg/ext/integer-pack1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/integer-pack2.C [new file with mode: 0644]