Patch for better diagnostic (was: Re: Bug in MI?)
Manfred Hollstein
manfred@s-direktnet.de
Sat Mar 7 06:06:00 GMT 1998
On , 6 March 1998, 20:12:37, jason@cygnus.com wrote:
> >>>>> Manfred Hollstein <manfred@s-direktnet.de> writes:
>
> > if (u == error_mark_node)
> > error (" since the following virtual functions are not finally overridden:");
> > else
> > error (" since the following virtual functions are abstract:");
> > TREE_PURPOSE (u) = error_mark_node;
> > while (u)
> > {
> > cp_error ("\t%#D", TREE_VALUE (u));
> > u = TREE_CHAIN (u);
> > }
>
> That can't be right; you can't treat error_mark_node like a TREE_LIST.
Perhaps, you're wright. But that treatment isn't new due to my patch. I only
added the the different error message, the while loop was already there.
manfred
More information about the Gcc-bugs
mailing list