Re: [C PATCH] Fix ICE with assignment to FUNCTION_DECL (PR c/64766)

2015-01-26 Thread Jeff Law
On 01/26/15 14:13, Jakub Jelinek wrote: Hi! On the following testcase we ICE during error recovery. Setting DECL_INITIAL of a FUNCTION_DECL to error_mark_node can't be possibly helpful, the error must have been diagnosed already; DECL_INITIAL on the FUNCTION_DECL should be kept as BLOCK. Bootst

[C PATCH] Fix ICE with assignment to FUNCTION_DECL (PR c/64766)

2015-01-26 Thread Jakub Jelinek
Hi! On the following testcase we ICE during error recovery. Setting DECL_INITIAL of a FUNCTION_DECL to error_mark_node can't be possibly helpful, the error must have been diagnosed already; DECL_INITIAL on the FUNCTION_DECL should be kept as BLOCK. Bootstrapped/regtested on x86_64-linux and i686-