Re: Add a DECL_EXPR for VLA pointer casts (PR 84305)

2018-02-12 Thread Joseph Myers
On Mon, 12 Feb 2018, Richard Sandiford wrote: > 2018-02-11 Richard Sandiford > > gcc/c/ > PR c/84305 > * c-decl.c (grokdeclarator): Create an anonymous TYPE_DECL > in PARM and TYPENAME contexts too, but attach it to a BIND_EXPR > and include the BIND_EXPR in the list of

Add a DECL_EXPR for VLA pointer casts (PR 84305)

2018-02-12 Thread Richard Sandiford
This PR was about a case in which we ended up with a MULT_EXPR that was shared between an ungimplified VLA type and a pointer calculation. The SSA names used in the pointer calculation were later freed, but they were still there in the VLA, and caused an ICE when remapping the types during inlinli