patch: cp/search.c broken

Aldy Hernandez aldyh@redhat.com
Thu Nov 15 07:50:00 GMT 2001


search.c doesn't compile because there is an attempt to declare bk in
the body of a function-- not after curly's.  this isn't c++ guys :)


obvious fix.

-- 
Aldy Hernandez			E-mail: aldyh@redhat.com
Professional Gypsy
Red Hat, Inc.

2001-11-25  Aldy Hernandez  <aldyh@redhat.com>

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


Index: search.c
===================================================================
RCS file: /cvs/uberbaum/gcc/cp/search.c,v
retrieving revision 1.217
diff -c -p -r1.217 search.c
*** search.c	2001/11/25 13:21:44	1.217
--- search.c	2001/11/26 01:50:50
*************** lookup_base_r (binfo, base, access, with
*** 477,482 ****
--- 477,483 ----
        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 */
*************** lookup_base_r (binfo, base, access, with
*** 494,503 ****
        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);
  
        switch (bk)
  	{
--- 495,504 ----
        if (TREE_VIA_VIRTUAL (base_binfo))
  	this_virtual = 1;
        
!       bk = lookup_base_r (base_binfo, base,
! 		    	  access, within_current_scope,
! 			  this_non_public, this_virtual,
! 			  binfo_ptr);
  
        switch (bk)
  	{



More information about the Gcc-patches mailing list