Commit 4bdd26e6 by Aldy Hernandez Committed by Aldy Hernandez

search.c (lookup_base_r): Declare bk in variable declaration space.

	     * cp/search.c (lookup_base_r): Declare bk in variable declaration
	     space.

From-SVN: r47333
parent addd7df6
2001-11-25 Aldy Hernandez <aldyh@redhat.com>
* cp/search.c (lookup_base_r): Declare bk in variable declaration
space.
2001-11-25 Nathan Sidwell <nathan@codesourcery.com> 2001-11-25 Nathan Sidwell <nathan@codesourcery.com>
PR g++/3145 PR g++/3145
......
...@@ -477,6 +477,7 @@ lookup_base_r (binfo, base, access, within_current_scope, ...@@ -477,6 +477,7 @@ lookup_base_r (binfo, base, access, within_current_scope,
tree base_binfo = TREE_VEC_ELT (bases, i); tree base_binfo = TREE_VEC_ELT (bases, i);
int this_non_public = is_non_public; int this_non_public = is_non_public;
int this_virtual = is_virtual; int this_virtual = is_virtual;
base_kind bk;
if (access <= ba_ignore) if (access <= ba_ignore)
; /* no change */ ; /* no change */
...@@ -494,10 +495,10 @@ lookup_base_r (binfo, base, access, within_current_scope, ...@@ -494,10 +495,10 @@ lookup_base_r (binfo, base, access, within_current_scope,
if (TREE_VIA_VIRTUAL (base_binfo)) if (TREE_VIA_VIRTUAL (base_binfo))
this_virtual = 1; this_virtual = 1;
base_kind bk = lookup_base_r (base_binfo, base, bk = lookup_base_r (base_binfo, base,
access, within_current_scope, access, within_current_scope,
this_non_public, this_virtual, this_non_public, this_virtual,
binfo_ptr); binfo_ptr);
switch (bk) switch (bk)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment