[parisc-linux] Internal compiler error

John David Anglin dave@hiauly1.hia.nrc.ca
Wed, 12 Jul 2000 15:37:28 -0400 (EDT)


> > 2000-06-26  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
> > 
> >         * c-typeck.c (digest_init): Return error_mark_node node when
> > 	TREE_TYPE (init)  == error_mark_node.
> > 
> > The problem looks similar to the one the above patch addressed.
> 
> I couldn't find "Return error_mark_node node" string in gcc/gcc/c-typeck.c.

Wrong search pattern.  The patched code in digest_init looks like

  if (type == error_mark_node
      || init == error_mark_node
      || TREE_TYPE (init)  == error_mark_node)
    return error_mark_node;

This fixed a similar problem where a missing declaration caused the
compiler to crash or produce the tree checking error that you got.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)