This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
push_nested_class does not handle namespaces
- To: egcs-patches at cygnus dot com
- Subject: push_nested_class does not handle namespaces
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Mon, 29 Jun 1998 06:43:07 +0200
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;