This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix PR c/27953


Hi,

Given the following testcase, the C front-end ICE's with a tree-check
failure in store_parm_decls_oldstyle:

void foo(struct A a) {}
void foo() {}

The ICE is caused by a stray error_mark_node which wasn't being
handled, the attached patch adds this missing check, thereby fixing
the ICE.

Bootstrapped and regression tested on i686-pc-linux-gnu with no new
failures, ok for mainline?

Cheers,
Lee.

:ADDPATCH c:

gcc/

2006-08-19 Lee Millward <lee.millward@codesourcery.com>

	PR c/27953
	* c-decl.c (store_parm_decls_oldstyle): Robustify.

testsuite/

2006-08-19 Lee Millward <lee.millward@codesourcery.com>

       PR c/27953
       * gcc.dg/pr27953.c: New test.

Attachment: pr27953.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]