Commit d762287d by Jason Merrill Committed by Jason Merrill

pt.c (argument_pack_element_is_expansion_p): A decl pack is an expansion.

	* pt.c (argument_pack_element_is_expansion_p): A decl pack is an
	expansion.

From-SVN: r225494
parent 5ef7cdf8
2015-07-06 Jason Merrill <jason@redhat.com>
* pt.c (argument_pack_element_is_expansion_p): A decl pack is an
expansion.
2015-07-02 Jason Merrill <jason@redhat.com> 2015-07-02 Jason Merrill <jason@redhat.com>
PR c++/66743 PR c++/66743
......
...@@ -9838,6 +9838,9 @@ argument_pack_element_is_expansion_p (tree arg_pack, int i) ...@@ -9838,6 +9838,9 @@ argument_pack_element_is_expansion_p (tree arg_pack, int i)
if (i >= TREE_VEC_LENGTH (vec)) if (i >= TREE_VEC_LENGTH (vec))
return 0; return 0;
tree elt = TREE_VEC_ELT (vec, i); tree elt = TREE_VEC_ELT (vec, i);
if (DECL_P (elt))
/* A decl pack is itself an expansion. */
elt = TREE_TYPE (elt);
if (!PACK_EXPANSION_P (elt)) if (!PACK_EXPANSION_P (elt))
return 0; return 0;
if (PACK_EXPANSION_EXTRA_ARGS (elt)) if (PACK_EXPANSION_EXTRA_ARGS (elt))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment