This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(C++) sizetype tweak
- To: gcc-patches at gcc dot gnu dot org
- Subject: (C++) sizetype tweak
- From: Jason Merrill <jason at cygnus dot com>
- Date: Tue, 28 Mar 2000 16:59:20 -0800
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;
}