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 3


IS_AGGR_TYPE bitches about being passed a namespace_decl 
when compiling new.cc.


r~


Index: class.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/class.c,v
retrieving revision 1.62
diff -c -p -d -r1.62 class.c
*** class.c	1998/06/17 23:51:39	1.62
--- class.c	1998/07/05 07:43:08
*************** push_nested_class (type, modify)
*** 4855,4861 ****
  {
    tree context;
  
!   if (type == NULL_TREE || type == error_mark_node || ! IS_AGGR_TYPE (type)
        || TREE_CODE (type) == TEMPLATE_TYPE_PARM
        || TREE_CODE (type) == TEMPLATE_TEMPLATE_PARM)
      return;
--- 4855,4863 ----
  {
    tree context;
  
!   if (type == NULL_TREE || type == error_mark_node
!       || TREE_CODE (type) == NAMESPACE_DECL
!       || ! IS_AGGR_TYPE (type)
        || TREE_CODE (type) == TEMPLATE_TYPE_PARM
        || TREE_CODE (type) == TEMPLATE_TEMPLATE_PARM)
      return;


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