Commit 8a5d50bd by Jason Merrill Committed by Jason Merrill

re PR c++/42358 ([C++0x] Assembler failure on…

re PR c++/42358 ([C++0x] Assembler failure on libstdc++-v3/testsuite/23_containers/multimap/init-list.cc with -O0)

	PR c++/42358
	* pt.c (iterative_hash_template_arg): Completely ignore
	ARGUMENT_PACK_SELECT.

From-SVN: r155267
parent 37152770
2009-12-15 Jason Merrill <jason@redhat.com>
PR c++/42358
* pt.c (iterative_hash_template_arg): Completely ignore
ARGUMENT_PACK_SELECT.
2009-12-15 Jakub Jelinek <jakub@redhat.com>
PR c++/41183
......
......@@ -1457,6 +1457,11 @@ iterative_hash_template_arg (tree arg, hashval_t val)
if (!TYPE_P (arg))
STRIP_NOPS (arg);
if (TREE_CODE (arg) == ARGUMENT_PACK_SELECT)
/* We can get one of these when re-hashing a previous entry in the middle
of substituting into a pack expansion. Just look through it. */
arg = ARGUMENT_PACK_SELECT_FROM_PACK (arg);
code = TREE_CODE (arg);
tclass = TREE_CODE_CLASS (code);
......@@ -1482,11 +1487,6 @@ iterative_hash_template_arg (tree arg, hashval_t val)
case EXPR_PACK_EXPANSION:
return iterative_hash_template_arg (PACK_EXPANSION_PATTERN (arg), val);
case ARGUMENT_PACK_SELECT:
/* We can get one of these when re-hashing a previous entry in the middle
of substituting into a pack expansion. Just look through it... */
arg = ARGUMENT_PACK_SELECT_FROM_PACK (arg);
/* ...and fall through. */
case TYPE_ARGUMENT_PACK:
case NONTYPE_ARGUMENT_PACK:
return iterative_hash_template_arg (ARGUMENT_PACK_ARGS (arg), val);
......
2009-12-15 Jason Merrill <jason@redhat.com>
PR c++/42358
* g++.dg/cpp0x/variadic98.C: New.
2009-12-14 Jason Merrill <jason@redhat.com>
PR c++/42373
......
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