Re: C PATCH for c/69819 (error-recovery ICE)

2016-02-24 Thread Joseph Myers
On Wed, 24 Feb 2016, Marek Polacek wrote: > This is a minor issue in the C FE, where it on an invalid code generated bogus > FUNCTION_DECL with ARRAY_TYPE as a type -- and gimplifier can't digest that. > > I think the code in finish_decl, whereby we update the type of shadowed global > variables

C PATCH for c/69819 (error-recovery ICE)

2016-02-24 Thread Marek Polacek
This is a minor issue in the C FE, where it on an invalid code generated bogus FUNCTION_DECL with ARRAY_TYPE as a type -- and gimplifier can't digest that. I think the code in finish_decl, whereby we update the type of shadowed global variables should not overwrite a type of totally unrelated decl