c++ enable-checking failure

Richard Henderson rth@cygnus.com
Sat Jul 4 23:36:00 GMT 1998


Compiling tinfo.cc, we find that basetype is a type, not
an identifier.


r~


Index: decl.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/decl.c,v
retrieving revision 1.145
diff -c -p -d -r1.145 decl.c
*** decl.c	1998/06/25 17:24:49	1.145
--- decl.c	1998/07/05 06:34:47
*************** xref_basetypes (code_type_node, name, re
*** 11315,11323 ****
        tree basetype = TREE_VALUE (binfo);
        tree base_binfo;
  
        GNU_xref_hier (IDENTIFIER_POINTER (name),
! 		     IDENTIFIER_POINTER (TREE_VALUE (binfo)),
  		     via_public, via_virtual, 0);
  
        if (basetype && TREE_CODE (basetype) == TYPE_DECL)
  	basetype = TREE_TYPE (basetype);
--- 11315,11325 ----
        tree basetype = TREE_VALUE (binfo);
        tree base_binfo;
  
+       /* basetype is a type, not an identifier.
        GNU_xref_hier (IDENTIFIER_POINTER (name),
! 		     IDENTIFIER_POINTER (basetype),
  		     via_public, via_virtual, 0);
+        */
  
        if (basetype && TREE_CODE (basetype) == TYPE_DECL)
  	basetype = TREE_TYPE (basetype);



More information about the Gcc-bugs mailing list