summaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gcc.gnu.org>2008-08-07 11:28:23 -0700
committerH.J. Lu <hjl@gcc.gnu.org>2008-08-07 11:28:23 -0700
commit056dd1af584c70c831ecb94d906e453d7d282be1 (patch)
tree7406f5a64033da41c177dc99aa4c9bd9767664c9 /gcc/cp/semantics.c
parent874d42b93e5926d5b225b97be7608a8c8836614b (diff)
downloadgcc-056dd1af584c70c831ecb94d906e453d7d282be1.tar.gz
semantics.c (finish_decltype_type): Initialize type.
2008-08-07 H.J. Lu <hongjiu.lu@intel.com> * semantics.c (finish_decltype_type): Initialize type. From-SVN: r138848
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 9a8af7c0774..3bcab9407d4 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -4475,7 +4475,7 @@ tree
finish_decltype_type (tree expr, bool id_expression_or_member_access_p)
{
tree orig_expr = expr;
- tree type;
+ tree type = NULL_TREE;
if (!expr || error_operand_p (expr))
return error_mark_node;