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:
parent
e939805b7b
commit
5fa0e8530e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user