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

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

From-SVN: r143402
This commit is contained in:
Steve Ellcey 2009-01-15 18:07:46 +00:00 committed by Steve Ellcey
parent e939805b7b
commit 5fa0e8530e
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
PR c++/38636

View File

@ -8975,6 +8975,9 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl)
if (DECL_P (t))
return tsubst_decl (t, args, complain);
if (args == NULL_TREE)
return t;
if (TREE_CODE (t) == IDENTIFIER_NODE)
type = IDENTIFIER_TYPE_VALUE (t);
else