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]

push_nested_class does not handle namespaces


Here's a patch.

Martin

1998-06-27  Martin von Löwis  <loewis@informatik.hu-berlin.de>

	* class.c (push_nested_class): Check for namespaces.

Index: cp/class.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/class.c,v
retrieving revision 1.62
diff -c -p -r1.62 class.c
*** class.c	1998/06/17 23:51:39	1.62
--- class.c	1998/06/29 04:25:44
*************** 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]