Commit 5fa0e853 by Steve Ellcey Committed by Steve Ellcey

re PR c++/38357 (ICE cc1plus (Segmentation fault))

	PR c++/38357
	* pt.c (tsubst): Check for NULL args.

From-SVN: r143402
parent e939805b
2009-01-15 Steve Ellcey <sje@cup.hp.com>
PR c++/38357
* pt.c (tsubst): Check for NULL args.
2009-01-15 Dodji Seketeli <dodji@redhat.com> 2009-01-15 Dodji Seketeli <dodji@redhat.com>
PR c++/38636 PR c++/38636
......
...@@ -8975,6 +8975,9 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl) ...@@ -8975,6 +8975,9 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl)
if (DECL_P (t)) if (DECL_P (t))
return tsubst_decl (t, args, complain); return tsubst_decl (t, args, complain);
if (args == NULL_TREE)
return t;
if (TREE_CODE (t) == IDENTIFIER_NODE) if (TREE_CODE (t) == IDENTIFIER_NODE)
type = IDENTIFIER_TYPE_VALUE (t); type = IDENTIFIER_TYPE_VALUE (t);
else else
......
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