From: mpolacek Date: Wed, 7 Oct 2015 14:09:05 +0000 (+0000) Subject: PR sanitizer/67867 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed03898decebd0f0de30d55afe5db0238f1bb615;p=thirdparty%2Fgcc.git PR sanitizer/67867 * search.c (accessible_p): Initialize OTYPE to NULL_TREE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228569 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 3c785451126f..d465ef6a5e2e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2015-10-07 Marek Polacek + + PR sanitizer/67867 + * search.c (accessible_p): Initialize OTYPE to NULL_TREE. + 2015-10-07 Marek Polacek * cp-gimplify.c (genericize_if_stmt): Use protected_set_expr_location. diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 508e66c43bb3..56bb266da310 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