mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 07:06:50 +08:00
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
This commit is contained in:
parent
addd7df604
commit
4bdd26e608
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
PR g++/3145
|
||||
|
@ -477,6 +477,7 @@ lookup_base_r (binfo, base, access, within_current_scope,
|
||||
tree base_binfo = TREE_VEC_ELT (bases, i);
|
||||
int this_non_public = is_non_public;
|
||||
int this_virtual = is_virtual;
|
||||
base_kind bk;
|
||||
|
||||
if (access <= ba_ignore)
|
||||
; /* no change */
|
||||
@ -494,10 +495,10 @@ lookup_base_r (binfo, base, access, within_current_scope,
|
||||
if (TREE_VIA_VIRTUAL (base_binfo))
|
||||
this_virtual = 1;
|
||||
|
||||
base_kind bk = lookup_base_r (base_binfo, base,
|
||||
access, within_current_scope,
|
||||
this_non_public, this_virtual,
|
||||
binfo_ptr);
|
||||
bk = lookup_base_r (base_binfo, base,
|
||||
access, within_current_scope,
|
||||
this_non_public, this_virtual,
|
||||
binfo_ptr);
|
||||
|
||||
switch (bk)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user