[PATCH] Avoid segfaulting in {start,finish}_decl

Richard Henderson rth@cygnus.com
Fri Oct 20 16:30:00 GMT 2000

On Fri, Oct 20, 2000 at 11:46:09PM +0200, Jakub Jelinek wrote:
> 	* c-decl.c (start_decl): Don't segfault if TREE_TYPE is error_mark.
> 	(finish_decl): Likewise.

Jim beat you to fixing this:

2000-10-19  Jim Wilson  <wilson@cygnus.com>

        * c-decl.c (start_decl): Check for error_mark_node type before using
        (finish_decl): Likewise.  Don't give an error if decl type is
        already error_mark_node.

> 	* gcc.dg/noncompile/init-3.c: New test.

... but he didn't check in a test case.  Ok.


More information about the Gcc-patches mailing list