c++ enable checking failure 3
Richard Henderson
rth@cygnus.com
Sun Jul 5 00:44:00 GMT 1998
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;
More information about the Gcc-patches
mailing list