(C++) sizetype tweak
Jason Merrill
jason@cygnus.com
Tue Mar 28 16:59:00 GMT 2000
2000-03-28 Jason Merrill <jason@casey.cygnus.com>
* class.c (finish_struct): Use bitsize_zero_node.
* pt.c (instantiate_class_template): Likewise.
*** class.c.~1~ Sun Mar 26 21:57:04 2000
--- class.c Tue Mar 28 16:57:15 2000
*************** finish_struct (t, attributes)
*** 5490,5496 ****
if (processing_template_decl)
{
finish_struct_methods (t);
! TYPE_SIZE (t) = integer_zero_node;
}
else
finish_struct_1 (t);
--- 5430,5436 ----
if (processing_template_decl)
{
finish_struct_methods (t);
! TYPE_SIZE (t) = bitsize_zero_node;
}
else
finish_struct_1 (t);
*** pt.c.~1~ Sun Mar 26 21:57:05 2000
--- pt.c Tue Mar 28 16:57:41 2000
*************** instantiate_class_template (type)
*** 4757,4763 ****
CLASSTYPE_TAGS (type) = CLASSTYPE_TAGS (pattern);
/* Pretend that the type is complete, so that we will look
inside it during name lookup and such. */
! TYPE_SIZE (type) = integer_zero_node;
return type;
}
--- 4757,4763 ----
CLASSTYPE_TAGS (type) = CLASSTYPE_TAGS (pattern);
/* Pretend that the type is complete, so that we will look
inside it during name lookup and such. */
! TYPE_SIZE (type) = bitsize_zero_node;
return type;
}
More information about the Gcc-patches
mailing list