Re: [PATCH 2/2] Fix PR middle-end/107705: ICE after reclaration error

2022-11-18 Thread Richard Biener via Gcc-patches
On Fri, Nov 18, 2022 at 4:26 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > The problem here is after we created a call expression > in the C front-end, we replace the decl type with > an error mark node. We then end up calling > aggregate_value_p with the call expression > with

[PATCH 2/2] Fix PR middle-end/107705: ICE after reclaration error

2022-11-17 Thread apinski--- via Gcc-patches
From: Andrew Pinski The problem here is after we created a call expression in the C front-end, we replace the decl type with an error mark node. We then end up calling aggregate_value_p with the call expression with the decl with the error mark as the type and we ICE. The fix is to check the fun