aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r--gcc/cp/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 508e66c..56bb266 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -961,7 +961,7 @@ accessible_p (tree type, tree decl, bool consider_local_p)
&& (!processing_template_parmlist || processing_template_decl > 1))
return 1;
- tree otype;
+ tree otype = NULL_TREE;
if (!TYPE_P (type))
{
/* When accessing a non-static member, the most derived type in the