This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++ enable-checking failure 2


Reusing IDENTIFIER_LENGTH fails when we are asserting that
the contents are an identifier node.


r~



Index: cp-tree.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/cp-tree.h,v
retrieving revision 1.91
diff -c -p -d -r1.91 cp-tree.h
*** cp-tree.h	1998/06/25 15:21:36	1.91
--- cp-tree.h	1998/07/05 07:09:56
*************** extern int flag_new_for_scope;
*** 1648,1655 ****
  #define UPT_PARMS(NODE)         TREE_VALUE(TYPE_VALUES(NODE))
  
  /* An un-parsed default argument looks like an identifier.  */
! #define DEFARG_LENGTH(NODE)	IDENTIFIER_LENGTH(NODE)
! #define DEFARG_POINTER(NODE)	IDENTIFIER_POINTER(NODE)
  
  #define builtin_function(NAME, TYPE, CODE, LIBNAME) \
    define_function (NAME, TYPE, CODE, (void (*) PROTO((tree)))pushdecl, LIBNAME)
--- 1648,1655 ----
  #define UPT_PARMS(NODE)         TREE_VALUE(TYPE_VALUES(NODE))
  
  /* An un-parsed default argument looks like an identifier.  */
! #define DEFARG_LENGTH(NODE)	((NODE)->identifier.length)
! #define DEFARG_POINTER(NODE)	((NODE)->identifier.pointer)
  
  #define builtin_function(NAME, TYPE, CODE, LIBNAME) \
    define_function (NAME, TYPE, CODE, (void (*) PROTO((tree)))pushdecl, LIBNAME)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]