From: Steve Ellcey Date: Thu, 15 Jan 2009 18:07:46 +0000 (+0000) Subject: re PR c++/38357 (ICE cc1plus (Segmentation fault)) X-Git-Tag: releases/gcc-4.4.0~856 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fa0e8530e447068cb120d9e6e2fe0d7f42dc37c;p=thirdparty%2Fgcc.git re PR c++/38357 (ICE cc1plus (Segmentation fault)) PR c++/38357 * pt.c (tsubst): Check for NULL args. From-SVN: r143402 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 07b9c7e49e6d..af7f0c06b9e3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2009-01-15 Steve Ellcey + + PR c++/38357 + * pt.c (tsubst): Check for NULL args. + 2009-01-15 Dodji Seketeli PR c++/38636 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index de70e531d0be..0618fe243287 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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