Re: [PATCH] c: Fix ICE caused by get_parm_array_spec [PR101702]

2021-08-04 Thread Martin Sebor via Gcc-patches
On 8/3/21 1:17 AM, Jakub Jelinek wrote: Hi! The following testcase ICEs, because nelts is NOP_EXPR around INTEGER_CST - it is a VLA whose extent folds into a constant - and get_parm_array_spec has specific INTEGER_CST handling and otherwise strips nops from nelts and stores it into a TREE_LIST t

[PATCH] c: Fix ICE caused by get_parm_array_spec [PR101702]

2021-08-03 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs, because nelts is NOP_EXPR around INTEGER_CST - it is a VLA whose extent folds into a constant - and get_parm_array_spec has specific INTEGER_CST handling and otherwise strips nops from nelts and stores it into a TREE_LIST that is later asserted to be a DECL_P or EX