class.c (layout_class): Handle case where superclass can't be layed out yet.

2000-10-07  Anthony Green  <green@redhat.com>

	* class.c (layout_class): Handle case where superclass can't be
	layed out yet.

From-SVN: r36789
This commit is contained in:
Anthony Green 2000-10-08 19:14:32 +00:00 committed by Anthony Green
parent 6f298a0a2d
commit 7fd9a51683
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2000-10-07 Anthony Green <green@redhat.com>
* class.c (layout_class): Handle case where superclass can't be
layed out yet.
2000-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
* Makefile.in (keyword.h): Refer to GNU FTP site for updated
@ -152,7 +157,6 @@ Wed Sep 13 11:50:35 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
(argument_types_convertible): Likewise.
(patch_cast): Rename wfl_op parameter to avoid macro conflicts.
>>>>>>> 1.531
2000-09-14 Tom Tromey <tromey@cygnus.com>
* lex.h: Use HAVE_ICONV_H, not HAVE_ICONV.

View File

@ -1839,8 +1839,10 @@ layout_class (this_class)
if (super_class)
{
super_class = maybe_layout_super_class (super_class, this_class);
if (TREE_CODE (TYPE_SIZE (super_class)) == ERROR_MARK)
tree maybe_super_class
= maybe_layout_super_class (super_class, this_class);
if (maybe_super_class == NULL
|| TREE_CODE (TYPE_SIZE (maybe_super_class)) == ERROR_MARK)
{
TYPE_SIZE (this_class) = error_mark_node;
CLASS_BEING_LAIDOUT (this_class) = 0;